mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
fixed bug that caused slow mapping/raising/lowering of large windows
This commit is contained in:
@@ -1437,6 +1437,7 @@ wMouseMoveWindow(WWindow *wwin, XEvent *ev)
|
|||||||
XEvent event;
|
XEvent event;
|
||||||
Window root = scr->root_win;
|
Window root = scr->root_win;
|
||||||
KeyCode shiftl, shiftr;
|
KeyCode shiftl, shiftr;
|
||||||
|
Bool done = False;
|
||||||
int started = 0;
|
int started = 0;
|
||||||
int warped = 0;
|
int warped = 0;
|
||||||
/* This needs not to change while moving, else bad things can happen */
|
/* This needs not to change while moving, else bad things can happen */
|
||||||
@@ -1470,7 +1471,7 @@ wMouseMoveWindow(WWindow *wwin, XEvent *ev)
|
|||||||
#endif
|
#endif
|
||||||
shiftl = XKeysymToKeycode(dpy, XK_Shift_L);
|
shiftl = XKeysymToKeycode(dpy, XK_Shift_L);
|
||||||
shiftr = XKeysymToKeycode(dpy, XK_Shift_R);
|
shiftr = XKeysymToKeycode(dpy, XK_Shift_R);
|
||||||
while (1) {
|
while (!done) {
|
||||||
if (warped) {
|
if (warped) {
|
||||||
int junk;
|
int junk;
|
||||||
Window junkw;
|
Window junkw;
|
||||||
@@ -1629,9 +1630,8 @@ wMouseMoveWindow(WWindow *wwin, XEvent *ev)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
puts("End move window");
|
puts("End move window");
|
||||||
#endif
|
#endif
|
||||||
freeMoveData(&moveData);
|
done = True;
|
||||||
|
break;
|
||||||
return started;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (started && !opaqueMove) {
|
if (started && !opaqueMove) {
|
||||||
@@ -1662,7 +1662,7 @@ wMouseMoveWindow(WWindow *wwin, XEvent *ev)
|
|||||||
|
|
||||||
freeMoveData(&moveData);
|
freeMoveData(&moveData);
|
||||||
|
|
||||||
return 0;
|
return started;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user