summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga <oga>2008-03-26 15:45:42 +0000
committeroga <oga>2008-03-26 15:45:42 +0000
commit34c0a0635f3323bc31481bba7b830f1e06bf3534 (patch)
tree8d525f57b4f2c6972a06d99bd06d483bfff7d179 /calmwm.h
parente704b57d33e738ffde59921f9c9b6dad8ab6ae7b (diff)
downloadcwm-34c0a0635f3323bc31481bba7b830f1e06bf3534.tar.gz
cwm-34c0a0635f3323bc31481bba7b830f1e06bf3534.tar.xz
cwm-34c0a0635f3323bc31481bba7b830f1e06bf3534.zip
Fix a couple of issues with the maximization code.
If a window is vertically maximized, then resized, before the MAXIMIZED
flag wasn't removed, now it is. so doing a resize then does the right
thing.

Also, separate flags are needed for vertical and normal maximziation,
else when you do vertical-maximize, followed by maximize, the window
returns to it's original size.

ok simon@, okan@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/calmwm.h b/calmwm.h
index 5317f17..a784798 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -95,18 +95,20 @@ struct screen_ctx {
 
 TAILQ_HEAD(screen_ctx_q, screen_ctx);
 
-#define CLIENT_PROTO_DELETE     0x01
-#define CLIENT_PROTO_TAKEFOCUS  0x02
+#define CLIENT_PROTO_DELETE	0x01
+#define CLIENT_PROTO_TAKEFOCUS	0x02
 
-#define CLIENT_MAXNAMEQLEN 5
+#define CLIENT_MAXNAMEQLEN	5
 
-#define CLIENT_HIDDEN  0x01
-#define CLIENT_IGNORE  0x02
-#define CLIENT_INQUEUE 0x04	/* tmp used by search code */
-#define CLIENT_MAXIMIZED 0x08
+#define CLIENT_HIDDEN		0x01
+#define CLIENT_IGNORE		0x02
+#define CLIENT_DOMAXIMIZE	0x04
+#define CLIENT_MAXIMIZED	0x08
+#define CLIENT_DOVMAXIMIZE	0x10
+#define CLIENT_VMAXIMIZED	0x20
 
-#define CLIENT_HIGHLIGHT_BLUE 1
-#define CLIENT_HIGHLIGHT_RED 2 
+#define CLIENT_HIGHLIGHT_BLUE	1
+#define CLIENT_HIGHLIGHT_RED	2 
 
 
 struct winname {