key.c: zoom maximizes current window
This commit is contained in:
parent
1102e26707
commit
c4a0ea2970
1 changed files with 10 additions and 1 deletions
11
key.c
11
key.c
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue