do not try to guess where we should XSync(), XSync after bunch of XEvents

This commit is contained in:
Julien Danjou 2008-01-11 16:17:15 +01:00
parent 121477db61
commit 542df6a3ab
5 changed files with 3 additions and 5 deletions

View File

@ -381,6 +381,9 @@ main(int argc, char *argv[])
}
statusbar_refresh();
/* need to resync */
XSync(dpy, False);
}
if(csfd > 0 && close(csfd))

View File

@ -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

View File

@ -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

View File

@ -60,7 +60,6 @@ statusbar_update_position(Statusbar *statusbar)
XUnmapWindow(globalconf.display, statusbar->window);
break;
}
XSync(globalconf.display, False);
}
void

View File

@ -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