key.c: zoom maximizes current window

This commit is contained in:
Iris Lightshard 2021-03-10 00:22:21 -05:00
parent 1102e26707
commit c4a0ea2970
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

11
key.c
View file

@ -457,8 +457,17 @@ void keypress(XKeyEvent* e) {
stick(current); stick(current);
#endif #endif
#ifdef ZOOM_KEY #ifdef ZOOM_KEY
else if (e->keycode == zcode && (e->state & SHORTCUTMOD) == (MODBITS)) else if (e->keycode == zcode && (e->state & SHORTCUTMOD) == (MODBITS)) {
zoom = !zoom; zoom = !zoom;
if (zoom) {
quickreshape(
current,
-BORDER,
-BORDER,
ra.width + 2 * BORDER,
ra.height + 2 * BORDER);
}
}
#endif #endif
/* half snap */ /* half snap */