From: root Date: Sat, 26 Jan 2008 12:12:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=8d2518caf76a2a136300b33c5423c625db70221b;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/command.C b/src/command.C index 348d944d..02048b5c 100644 --- a/src/command.C +++ b/src/command.C @@ -1440,12 +1440,12 @@ rxvt_term::x_cb (XEvent &ev) 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) diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C index 610b81b1..b1b0abff 100644 --- a/src/rxvttoolkit.C +++ b/src/rxvttoolkit.C @@ -571,14 +571,15 @@ void rxvt_display::x_cb (ev::io &w, int revents) } } } - - 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 (); }