summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga <oga>2011-09-04 16:59:31 +0000
committeroga <oga>2011-09-04 16:59:31 +0000
commit44d8b1d3ace79e2c648e859f931f76a027f51ff0 (patch)
tree10ac87b3f21ed9a985c5f0abc513cfa68700b08e /calmwm.h
parentb852a73a60f96b45ae93ab5c7ea23a68743eaf04 (diff)
downloadcwm-44d8b1d3ace79e2c648e859f931f76a027f51ff0.tar.gz
cwm-44d8b1d3ace79e2c648e859f931f76a027f51ff0.tar.xz
cwm-44d8b1d3ace79e2c648e859f931f76a027f51ff0.zip
Make flavours of maximisation additive.
i.e. horiz-max + vertmax = full maximisation.  full - horiz = vertmax.
etc.

Martynas wrote something like this once, so I did okan, this version
seems to finally deal with the corner cases.

ok okan@.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/calmwm.h b/calmwm.h
index 7ffd157..0d035d9 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -143,10 +143,12 @@ struct client_ctx {
 	int			 xproto;
 #define CLIENT_HIDDEN			0x0001
 #define CLIENT_IGNORE			0x0002
-#define CLIENT_MAXIMIZED		0x0004
-#define CLIENT_VMAXIMIZED		0x0008
-#define CLIENT_HMAXIMIZED		0x0010
-#define CLIENT_FREEZE			0x0020
+#define CLIENT_VMAXIMIZED		0x0004
+#define CLIENT_HMAXIMIZED		0x0008
+#define CLIENT_FREEZE			0x0010
+
+#define CLIENT_MAXFLAGS			(CLIENT_VMAXIMIZED | CLIENT_HMAXIMIZED)
+#define CLIENT_MAXIMIZED		(CLIENT_VMAXIMIZED | CLIENT_HMAXIMIZED)
 	int			 flags;
 	int			 state;
 	int			 active;