all but the last event. So lets run with this for a while and see what
happens.
long data[] = {state, None};
XEvent ev;
XWindowAttributes wa;
long data[] = {state, None};
XEvent ev;
XWindowAttributes wa;
DNPRINTF(SWM_D_EVENT, "set_win_state: window: %lu\n", win->id);
DNPRINTF(SWM_D_EVENT, "set_win_state: window: %lu\n", win->id);
(unsigned char *)data, 2);
/* wait for completion of XChangeProperty */
(unsigned char *)data, 2);
/* wait for completion of XChangeProperty */
while (XCheckIfEvent(display, &ev, set_win_notify_cb, (char *)win))
while (XCheckIfEvent(display, &ev, set_win_notify_cb, (char *)win))
+ putback = 1;
+ if (putback)
+ XPutBackEvent(display, &ev);
{
XEvent ev;
XWindowAttributes wa;
{
XEvent ev;
XWindowAttributes wa;
XUnmapWindow(display, win->id);
/* make sure we wait for XUnmapWindow completion */
XUnmapWindow(display, win->id);
/* make sure we wait for XUnmapWindow completion */
while (XCheckIfEvent(display, &ev, unmap_window_cb, (char *)win))
while (XCheckIfEvent(display, &ev, unmap_window_cb, (char *)win))
+ putback = 1;
+ if (putback)
+ XPutBackEvent(display, &ev);