aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga2011-09-04 16:59:31 +0000
committeroga2011-09-04 16:59:31 +0000
commit72f03bc4a8c60da10bec95e806bf71c4959a022b (patch)
tree7078cee149c85f20910678ea857fc4a87a43dc36 /calmwm.h
parentc3ab5d4f1316da4c6aba8acb4460121ee3e45b59 (diff)
downloadcwm-72f03bc4a8c60da10bec95e806bf71c4959a022b.tar.gz
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 '')
-rw-r--r--calmwm.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/calmwm.h b/calmwm.h
index 053138e..c67e6c9 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.139 2011/09/03 09:42:33 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.140 2011/09/04 16:59:31 oga Exp $
*/
#ifndef _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;