about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2011-05-07 17:15:37 +0000
committerokan <okan>2011-05-07 17:15:37 +0000
commit43450c8fd744b85aaed80da3f6132acfd4dafd8c (patch)
tree1864a34a893025fbdab1db45e6ba5cca50215fda /calmwm.h
parent760c6b5522626145662eb423ec77ccf4d19da584 (diff)
downloadcwm-43450c8fd744b85aaed80da3f6132acfd4dafd8c.tar.gz
cwm-43450c8fd744b85aaed80da3f6132acfd4dafd8c.tar.xz
cwm-43450c8fd744b85aaed80da3f6132acfd4dafd8c.zip
introduce a new 'freeze' flag (CMS-f by default) which may be applied to
any window, after which all move/resize requests will be ignored,
essentially freezing the window in place.

there's a possibility to merge this with the 'ignore' concept, pending
on how ignore+freeze should behave (really more ewmh stuff), but punting
for now since ponies are on the line.

requested and tested by thib at k2k11 with ponies, unicorns and rainbows.

'save the unicorns' todd@, ok oga@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h
index b213312..7a758d1 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -150,6 +150,7 @@ struct client_ctx {
 #define CLIENT_VMAXIMIZED		0x0020
 #define CLIENT_DOHMAXIMIZE		0x0040
 #define CLIENT_HMAXIMIZED		0x0080
+#define CLIENT_FREEZE			0x0100
 	int			 flags;
 	int			 state;
 	int			 active;
@@ -314,6 +315,7 @@ struct client_ctx	*client_cycle(struct screen_ctx *, int);
 int			 client_delete(struct client_ctx *);
 void			 client_draw_border(struct client_ctx *);
 struct client_ctx	*client_find(Window);
+void			 client_freeze(struct client_ctx *);
 void			 client_getsizehints(struct client_ctx *);
 void			 client_hide(struct client_ctx *);
 void			 client_horizmaximize(struct client_ctx *);
@@ -368,6 +370,7 @@ void			 kbfunc_client_cycle(struct client_ctx *, union arg *);
 void			 kbfunc_client_cyclegroup(struct client_ctx *,
 			     union arg *);
 void			 kbfunc_client_delete(struct client_ctx *, union arg *);
+void			 kbfunc_client_freeze(struct client_ctx *, union arg *);
 void			 kbfunc_client_group(struct client_ctx *, union arg *);
 void			 kbfunc_client_grouponly(struct client_ctx *,
 			     union arg *);