From c4a0ea2970e8887ea7f5c47427a84e4dd6d49089 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 10 Mar 2021 00:22:21 -0500 Subject: [PATCH] key.c: zoom maximizes current window --- key.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/key.c b/key.c index 81d957b..165ff0a 100644 --- a/key.c +++ b/key.c @@ -457,8 +457,17 @@ void keypress(XKeyEvent* e) { stick(current); #endif #ifdef ZOOM_KEY - else if (e->keycode == zcode && (e->state & SHORTCUTMOD) == (MODBITS)) + else if (e->keycode == zcode && (e->state & SHORTCUTMOD) == (MODBITS)) { zoom = !zoom; + if (zoom) { + quickreshape( + current, + -BORDER, + -BORDER, + ra.width + 2 * BORDER, + ra.height + 2 * BORDER); + } + } #endif /* half snap */