do not try to guess where we should XSync(), XSync after bunch of XEvents
This commit is contained in:
parent
121477db61
commit
542df6a3ab
|
@ -381,6 +381,9 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
statusbar_refresh();
|
||||
|
||||
/* need to resync */
|
||||
XSync(dpy, False);
|
||||
}
|
||||
|
||||
if(csfd > 0 && close(csfd))
|
||||
|
|
1
event.c
1
event.c
|
@ -187,7 +187,6 @@ handle_event_configurerequest(XEvent * e)
|
|||
wc.stack_mode = ev->detail;
|
||||
XConfigureWindow(e->xany.display, ev->window, ev->value_mask, &wc);
|
||||
}
|
||||
XSync(e->xany.display, False);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
1
layout.c
1
layout.c
|
@ -200,7 +200,6 @@ restack(int screen)
|
|||
if(globalconf.screens[screen].focus_move_pointer)
|
||||
XWarpPointer(globalconf.display, None, sel->win, 0, 0, 0, 0,
|
||||
sel->geometry.width / 2, sel->geometry.height / 2);
|
||||
XSync(globalconf.display, False);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -60,7 +60,6 @@ statusbar_update_position(Statusbar *statusbar)
|
|||
XUnmapWindow(globalconf.display, statusbar->window);
|
||||
break;
|
||||
}
|
||||
XSync(globalconf.display, False);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
2
window.c
2
window.c
|
@ -168,8 +168,6 @@ window_settrans(Window win, double opacity)
|
|||
}
|
||||
else
|
||||
XDeleteProperty(globalconf.display, win, XInternAtom(globalconf.display, "_NET_WM_WINDOW_OPACITY", False));
|
||||
|
||||
XSync(globalconf.display, False);
|
||||
}
|
||||
|
||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||
|
|
Loading…
Reference in New Issue