From 542df6a3abd7a9ddb1127b6051431a94837d74ae Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 11 Jan 2008 16:17:15 +0100 Subject: [PATCH] do not try to guess where we should XSync(), XSync after bunch of XEvents --- awesome.c | 3 +++ event.c | 1 - layout.c | 1 - statusbar.c | 1 - window.c | 2 -- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/awesome.c b/awesome.c index 36349a64e..5ee238382 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 9d1288476..68ea8bf29 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 e0dd9f3c7..970162ebe 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 dd8b048e5..28d800de8 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 054645477..9fdc7e1e5 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