diff options
author | oga <oga> | 2011-09-04 16:59:31 +0000 |
---|---|---|
committer | oga <oga> | 2011-09-04 16:59:31 +0000 |
commit | 44d8b1d3ace79e2c648e859f931f76a027f51ff0 (patch) | |
tree | 10ac87b3f21ed9a985c5f0abc513cfa68700b08e /calmwm.h | |
parent | b852a73a60f96b45ae93ab5c7ea23a68743eaf04 (diff) | |
download | cwm-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.h | 10 |
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; |