From 94efff0bb2547297e487e150242b423f3405e803 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 7 Sep 2012 11:51:08 -0500 Subject: [PATCH] apply patch from richardgv. fixes #5. --- src/compton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 60948ca..b81117d 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1712,7 +1712,10 @@ configure_win(Display *dpy, XConfigureEvent *ce) { /* save the configure event for when the window maps */ w->need_configure = True; w->queue_configure = *ce; + restack_win(dpy, w, ce->above); } else { + if (!(w->need_configure)) + restack_win(dpy, w, ce->above); w->need_configure = False; #if CAN_DO_USABLE @@ -1760,7 +1763,6 @@ configure_win(Display *dpy, XConfigureEvent *ce) { } w->a.override_redirect = ce->override_redirect; - restack_win(dpy, w, ce->above); } static void