diff --git a/awesome.c b/awesome.c index 36349a64..5ee23838 100644 --- a/awesome.c +++ b/awesome.c @@ -381,6 +381,9 @@ main(int argc, char *argv[]) } statusbar_refresh(); + + /* need to resync */ + XSync(dpy, False); } if(csfd > 0 && close(csfd)) diff --git a/event.c b/event.c index 9d128847..68ea8bf2 100644 --- a/event.c +++ b/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 diff --git a/layout.c b/layout.c index e0dd9f3c..970162eb 100644 --- a/layout.c +++ b/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 diff --git a/statusbar.c b/statusbar.c index dd8b048e..28d800de 100644 --- a/statusbar.c +++ b/statusbar.c @@ -60,7 +60,6 @@ statusbar_update_position(Statusbar *statusbar) XUnmapWindow(globalconf.display, statusbar->window); break; } - XSync(globalconf.display, False); } void diff --git a/window.c b/window.c index 05464547..9fdc7e1e 100644 --- a/window.c +++ b/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