Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fix
[dwm.git]
/
main.c
diff --git
a/main.c
b/main.c
index
614faa0
..
16cf806
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-227,6
+227,8
@@
quit(const char *arg) {
void
updatebarpos(void) {
void
updatebarpos(void) {
+ XEvent ev;
+
wax = sx;
way = sy;
wah = sh;
wax = sx;
way = sy;
wah = sh;
@@
-245,6
+247,9
@@
updatebarpos(void) {
XMoveWindow(dpy, barwin, sx, sy - bh);
break;
}
XMoveWindow(dpy, barwin, sx, sy - bh);
break;
}
+ XRaiseWindow(dpy, barwin);
+ XSync(dpy, False);
+ while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
/* There's no way to check accesses to destroyed windows, thus those cases are
}
/* There's no way to check accesses to destroyed windows, thus those cases are