break;
case ConfigureNotify:
- fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n",
+ /*fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n",
ev.xconfigure.window, parent[0], ev.xconfigure.width, ev.xconfigure.height, ev.xconfigure.x, ev.xconfigure.y,
- szHint.width, szHint.height);
+ szHint.width, szHint.height);*/
if (ev.xconfigure.window == parent[0])
{
- //while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev))
+ while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev))
;
if (szHint.width != ev.xconfigure.width || szHint.height != ev.xconfigure.height)
}
}
}
-
- flush_ev.start ();
}
void rxvt_display::flush_cb (ev::prepare &w, int revents)
{
- x_cb(x_ev,0);//D
- XFlush (dpy);
+ while (XEventsQueued (dpy, QueuedAfterFlush))
+ {
+ x_cb(x_ev,0);//D
+ }
+
w.stop ();
}