Fix hang after C-z in gnome-shell.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)
commitb77a6a7f9c876223da0152752da6b441ad7dc3ce
tree0f98d17c9296357d0a812196262602e8031c4ca6
parentdba0634a93dce8370b7a07727d6ad54ffa695872
Fix hang after C-z in gnome-shell.

* xterm.c: Declare x_handle_net_wm_state to return int.
(handle_one_xevent): Check if we are iconified but don't have
_NET_WM_STATE_HIDDEN.  If do, treat as deiconify.
(get_current_wm_state): Return non-zero if not hidden,
check for _NET_WM_STATE_HIDDEN (Bug#9893).
(do_ewmh_fullscreen): Ignore return value from get_current_wm_state.
(x_handle_net_wm_state): Return what get_current_wm_state returns.
(x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden.

* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
src/ChangeLog
src/xterm.c
src/xterm.h