Put ismoving flag on the right place
This commit is contained in:
parent
b1cd7d16c6
commit
3a63b7bb52
4
mouse.c
4
mouse.c
|
@ -72,7 +72,6 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
RootWindow(globalconf.display, phys_screen),
|
RootWindow(globalconf.display, phys_screen),
|
||||||
&dummy, &dummy, &x, &y, &di, &di, &dui);
|
&dummy, &dummy, &x, &y, &di, &di, &dui);
|
||||||
c->ismax = False;
|
c->ismax = False;
|
||||||
c->ismoving = True;
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
XMaskEvent(globalconf.display, MOUSEMASK | ExposureMask | SubstructureRedirectMask, &ev);
|
XMaskEvent(globalconf.display, MOUSEMASK | ExposureMask | SubstructureRedirectMask, &ev);
|
||||||
|
@ -80,7 +79,6 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
case ButtonRelease:
|
case ButtonRelease:
|
||||||
XUngrabPointer(globalconf.display, CurrentTime);
|
XUngrabPointer(globalconf.display, CurrentTime);
|
||||||
c->ismoving = False;
|
|
||||||
return;
|
return;
|
||||||
case ConfigureRequest:
|
case ConfigureRequest:
|
||||||
event_handle_configurerequest(&ev);
|
event_handle_configurerequest(&ev);
|
||||||
|
@ -114,7 +112,9 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
geometry.width = c->geometry.width;
|
geometry.width = c->geometry.width;
|
||||||
geometry.height = c->geometry.height;
|
geometry.height = c->geometry.height;
|
||||||
|
|
||||||
|
c->ismoving = True;
|
||||||
client_resize(c, geometry, False);
|
client_resize(c, geometry, False);
|
||||||
|
c->ismoving = False;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue