diff options
author | Jess VanDerwalker <washu@sonic.net> | 2012-08-09 11:35:44 -0700 |
---|---|---|
committer | Jess VanDerwalker <washu@sonic.net> | 2012-08-29 09:15:52 -0700 |
commit | 01b15ed290db6a8ae3d06a44b67ead55ad8076f6 (patch) | |
tree | ed5a1cfe19066763a69f30a4d70929b15370174b /include | |
parent | 20f256fa9f88cdfb25c6ea39150b7ebc5a876e88 (diff) |
libxcwm: Setting _NET_WM_STATE_HIDDEN on iconic windows.
Added xcwm_window_state_t enum for the window states supported by
library.
_xcwm_atoms_set_wm_state() updated to use xcwm_window_state_t as
param. Also, _xcwm_atoms_set_wm_state sets the _NET_WM_STATE atom to
_NET_WM_STATE_HIDDEN when window is made iconic, and removes it when
window is de-iconified.
Signed-off-by: Jess VanDerwalker <washu@sonic.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/xcwm/window.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/xcwm/window.h b/include/xcwm/window.h index 611e365..95c3ff5 100644 --- a/include/xcwm/window.h +++ b/include/xcwm/window.h @@ -64,6 +64,16 @@ enum xcwm_window_type_t { typedef enum xcwm_window_type_t xcwm_window_type_t; /** + * Enumeration for possible supported window states. + */ +enum xcwm_window_state_t { + XCWM_WINDOW_STATE_UNKNOWN = 0, + XCWM_WINDOW_STATE_NORMAL, + XCWM_WINDOW_STATE_ICONIC +}; +typedef enum xcwm_window_state_t xcwm_window_state_t; + +/** * Structure defining min/max size for window and resizing * increments. A value of 0 in any field implies the field is unset. */ |