From 96a9efc6dd64855273b924a419aa2ccd334ad428 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Wed, 18 May 2016 00:05:32 +0800 Subject: [PATCH] Ensure iconic windows stay iconic when reparenting. --- spectrwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrwm.c b/spectrwm.c index f5c5a0d..3aeb294 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -11096,7 +11096,7 @@ reparentnotify(xcb_reparent_notify_event_t *e) if (win->state == SWM_WIN_STATE_REPARENTING) { win->state = SWM_WIN_STATE_REPARENTED; - if (win->ws->r) + if (win->ws->r && !ICONIC(win)) map_window(win); else unmap_window(win); -- 2.39.2