mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
cvsimport
* refs/heads/master: Revert r1.109 (Switch to XWindowEvent() pulling out events that match the mask *and* window.) of mousefunc.c. When a client destroys itself while we are moving or resizing it, XWindowEvent() blocks. Found the hard way by Anton Lazarov, and Lea°hNeukirchen found the right bit to revert - thanks! Reverting since the reason to switch from XMaskEvent was unclear.
This commit is contained in:
commit
dd5f951205
4
kbfunc.c
4
kbfunc.c
@ -171,7 +171,7 @@ kbfunc_client_move_mb(void *ctx, struct cargs *cargs)
|
||||
menu_windraw(sc, cc->win, "%4d, %-4d", cc->geom.x, cc->geom.y);
|
||||
|
||||
while (move) {
|
||||
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
||||
XMaskEvent(X_Dpy, MOUSEMASK, &ev);
|
||||
switch (ev.type) {
|
||||
case MotionNotify:
|
||||
/* not more than 60 times / second */
|
||||
@ -259,7 +259,7 @@ kbfunc_client_resize_mb(void *ctx, struct cargs *cargs)
|
||||
|
||||
menu_windraw(sc, cc->win, "%4d x %-4d", cc->dim.w, cc->dim.h);
|
||||
while (resize) {
|
||||
XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
|
||||
XMaskEvent(X_Dpy, MOUSEMASK, &ev);
|
||||
switch (ev.type) {
|
||||
case MotionNotify:
|
||||
/* not more than 60 times / second */
|
||||
|
Loading…
Reference in New Issue
Block a user