summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJess VanDerwalker <washu@sonic.net>2012-08-08 11:28:16 -0700
committerJess VanDerwalker <washu@sonic.net>2012-08-29 09:15:52 -0700
commita1a33a1c42bec87b41ea995a478beae42ba1ecf4 (patch)
tree4a15270b1bbbf70a8aa0b87e53a7ea523f9709a2 /include
parentdf5dfe47076140f5f31e3e1d73b4804a16071ba3 (diff)
libxcwm: Functions in atoms.c and window.c for setting of ICCCM WM_STATE atom.
A wm_state_atom field added to xcwm_atoms_t and value determined on atom init. Functions to change state to Iconic or Normal added to window.c and atoms.c. Functions in window.c are wrappers for the atoms.c functions. The window.c functions are to be called by window manager when window is iconified or de-iconified. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'include')
-rw-r--r--include/xcwm/window.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/xcwm/window.h b/include/xcwm/window.h
index af2774d..611e365 100644
--- a/include/xcwm/window.h
+++ b/include/xcwm/window.h
@@ -231,4 +231,20 @@ xcwm_window_copy_name(xcwm_window_t const *window);
xcwm_window_sizing_t const *
xcwm_window_get_sizing(xcwm_window_t const *window);
+/**
+ * Set the window to an iconic state. Usually this means the window
+ * has been minimized.
+ * @param window The window to iconify
+ */
+void
+xcwm_window_iconify(xcwm_window_t *window);
+
+/**
+ * Set the window to a normal state, meaning that the window has moved
+ * from an iconic/minimized state to a deiconic/de-minimized state.
+ * @param window The window being deiconified
+ */
+void
+xcwm_window_deiconify(xcwm_window_t *window);
+
#endif /* _XCWM_WINDOW_H_ */