From 9798372dada127b4294dd53e80501c05e544b86c Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 16 Dec 2013 19:02:17 +0000 Subject: 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@ --- kbfunc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index ae3ba71..749544f 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -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: kbfunc.c,v 1.84 2013/12/13 22:39:13 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.85 2013/12/16 19:02:17 okan Exp $ */ #include @@ -447,6 +447,12 @@ kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg) group_movetogroup(cc, arg->i); } +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) { -- cgit v1.2.3-2-gb3c3