about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2013-05-20 21:13:58 +0000
committerokan <okan>2013-05-20 21:13:58 +0000
commit284af4ca0c40d7a90ea0f574924abb707db7db05 (patch)
tree394987beec0e33829e05f8ba817d7923fc3f8ec3 /calmwm.h
parent270df196ac17363536c44fe342b4e71e1c8450e3 (diff)
downloadcwm-284af4ca0c40d7a90ea0f574924abb707db7db05.tar.gz
cwm-284af4ca0c40d7a90ea0f574924abb707db7db05.tar.xz
cwm-284af4ca0c40d7a90ea0f574924abb707db7db05.zip
add support for _NET_WM_STATE_MAXIMIZED_{HORZ,VERT}; from Alexander Polakov.
while I'm unsure of the final look of _NET_WM_STATE, there's no reason
to delay this support.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h
index 5671ece..e525cbf 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -481,6 +481,9 @@ void			 xu_ewmh_net_desktop_names(struct screen_ctx *, char *,
 			     int);
 
 void			 xu_ewmh_net_wm_desktop(struct client_ctx *);
+Atom 			*xu_ewmh_get_net_wm_state(struct client_ctx *, int *);
+void 			 xu_ewmh_set_net_wm_state(struct client_ctx *);
+void 			 xu_ewmh_restore_net_wm_state(struct client_ctx *);
 
 void			 u_exec(char *);
 void			 u_spawn(char *);
@@ -534,6 +537,10 @@ enum {
 	_NET_WM_NAME,
 	_NET_WM_DESKTOP,
 	_NET_CLOSE_WINDOW,
+	_NET_WM_STATE,
+#define	_NET_WM_STATES_NITEMS	2
+	_NET_WM_STATE_MAXIMIZED_VERT,
+	_NET_WM_STATE_MAXIMIZED_HORZ,
 	EWMH_NITEMS
 };
 struct atom_ctx {