Skip to content

Commit

Permalink
Fix iconified windows should uniconify on MapRequest.
Browse files Browse the repository at this point in the history
For example, when iconifying a window by clicking a button in an
application's UI, uniconify the window if the application tries to map
it again.
  • Loading branch information
LordReg committed Nov 24, 2023
1 parent 659c065 commit 038cef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spectrwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15400,6 +15400,9 @@ maprequest(xcb_map_request_event_t *e)
setfocus = true;
}

if (ewmh_apply_flags(win, win->ewmh_flags & ~EWMH_F_HIDDEN))
ewmh_update_wm_state(win);

if (setfocus) {
set_focus(s, get_focus_magic(win));
draw_frame(get_ws_focus_prev(ws));
Expand Down

0 comments on commit 038cef3

Please sign in to comment.