[mouse] Fix bug with floating
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
00f966ea04
commit
89daa72790
15
mouse.c
15
mouse.c
|
@ -365,6 +365,21 @@ mouse_client_move(client_t *c, int snap)
|
||||||
geometry.y = ocy + (ev_motion->event_y - query_pointer_r->root_y);
|
geometry.y = ocy + (ev_motion->event_y - query_pointer_r->root_y);
|
||||||
|
|
||||||
geometry = mouse_snapclient(c, geometry, snap);
|
geometry = mouse_snapclient(c, geometry, snap);
|
||||||
|
if((newscreen = screen_get_bycoord(globalconf.screens_info, screen,
|
||||||
|
geometry.x, geometry.y)) != screen)
|
||||||
|
{
|
||||||
|
if((ws = globalconf.screens[newscreen].workspace))
|
||||||
|
{
|
||||||
|
screen = workspace_screen_get(ws);
|
||||||
|
workspace_client_set(c, ws);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
p_delete(&ev);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
c->ismoving = true;
|
c->ismoving = true;
|
||||||
client_resize(c, geometry, false);
|
client_resize(c, geometry, false);
|
||||||
c->ismoving = false;
|
c->ismoving = false;
|
||||||
|
|
Loading…
Reference in New Issue