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 */