From 239a061af633e1f0ab7d0c23b5dac88248742708 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 22 Dec 2015 22:08:39 +0200 Subject: [PATCH] Update the window pointer after reordering Otherwise an incorrect window's map state may be checked. --- source/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 379b089..34e05b1 100644 --- a/source/main.c +++ b/source/main.c @@ -1307,7 +1307,7 @@ void process_configure_event(Compositor *compositor, XConfigureEvent *event) window->border = event->border_width; window->recreate_pixmap = 1; } - reorder_window(screen, window, event->above); + window = reorder_window(screen, window, event->above); if(window->map_state==IsViewable) mark_dirty(compositor, screen); -- 2.45.2