Skip to content

Commit

Permalink
Fix reset_window logic
Browse files Browse the repository at this point in the history
A window should not be rest if it is not special to begin with
  • Loading branch information
mtreca committed Nov 7, 2019
1 parent 50a8cd0 commit 74fbfba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2961,9 +2961,10 @@ ipc_window_unmaximize(uint32_t *d)
if (focused_win == NULL)
return;

unmaximize_window(focused_win);

set_focused(focused_win);
if (is_special(focused_win)) {
reset_window(focused_win);
set_focused(focused_win);
}

xcb_flush(conn);
}
Expand Down

0 comments on commit 74fbfba

Please sign in to comment.