From 43450c8fd744b85aaed80da3f6132acfd4dafd8c Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 7 May 2011 17:15:37 +0000 Subject: 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@ --- kbfunc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index c4ee7ed..fc2aede 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -58,6 +58,9 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg) int x, y, flags, amt; u_int mx, my; + if (cc->flags & CLIENT_FREEZE) + return; + sc = cc->sc; mx = my = 0; @@ -479,6 +482,12 @@ kbfunc_client_hmaximize(struct client_ctx *cc, union arg *arg) client_horizmaximize(cc); } +void +kbfunc_client_freeze(struct client_ctx *cc, union arg *arg) +{ + client_freeze(cc); +} + void kbfunc_quit_wm(struct client_ctx *cc, union arg *arg) { -- cgit 1.4.1