diff options
author | okan <okan> | 2013-12-16 19:02:17 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-16 19:02:17 +0000 |
commit | 19fc7f666bd8e2d5956a7a3958bf6be4f5fea137 (patch) | |
tree | a54a15eb8c86a88dd67c98f241a0ceb05d93ec96 /kbfunc.c | |
parent | f98f4615c0bf2fbf3f6229ccb9cb46284f3dd18a (diff) | |
download | cwm-19fc7f666bd8e2d5956a7a3958bf6be4f5fea137.tar.gz cwm-19fc7f666bd8e2d5956a7a3958bf6be4f5fea137.tar.xz cwm-19fc7f666bd8e2d5956a7a3958bf6be4f5fea137.zip |
Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint.
Since we already have a form of 'maximize', we need to differentiate between 'maximize' and the new 'fullscreen' mode. The 'maximize' mode will continue to honor gap but now *retains* the border, matching the 'vert/horz maximize' behaviour. The new 'fullscreen' mode supports and follows the _NET_WM_STATE_FULLSCREEN hint, allowing the client perform additional window modifications; in this mode, cwm(1) will *ignore* gap, remove borders and freeze(move/resize) the client. Additionally, 'fullscreen' mode will remember various combinations of previous states. * default keybinding changes: CM-f 'fullscreen', CM-m 'maximize' (re-map as desired). Positive feedback from a few, testing and ok sthen@
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kbfunc.c b/kbfunc.c index 351366e..69c05fc 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -448,6 +448,12 @@ kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg) } void +kbfunc_client_fullscreen(struct client_ctx *cc, union arg *arg) +{ + client_fullscreen(cc); +} + +void kbfunc_client_maximize(struct client_ctx *cc, union arg *arg) { client_maximize(cc); |