Skip to content

Commit

Permalink
Ensure iconic windows stay iconic when reparenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
LordReg committed May 17, 2016
1 parent 68a43ba commit 96a9efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectrwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96a9efc

Please sign in to comment.