1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

Make left/right maximization work again

The patch "Clean up maximization and un-maximization logic" introduced
a regression wrt to the left/half maximization feature, due to a C
operator order precedence issue.
This commit is contained in:
Carlos R. Mafra
2009-09-13 18:28:42 +02:00
parent cbd13dd95f
commit 4bce3e3805

View File

@@ -1466,7 +1466,7 @@ static void handleKeyPress(XEvent * event)
if (ISMAPPED(wwin) && ISFOCUSED(wwin) && IS_RESIZABLE(wwin)) {
CloseWindowMenu(scr);
if (wwin->flags.maximized == MAX_VERTICAL | MAX_LEFTHALF)
if (wwin->flags.maximized == (MAX_VERTICAL | MAX_LEFTHALF))
wUnmaximizeWindow(wwin);
else
wMaximizeWindow(wwin, MAX_VERTICAL | MAX_LEFTHALF | MAX_KEYBOARD);
@@ -1476,7 +1476,7 @@ static void handleKeyPress(XEvent * event)
if (ISMAPPED(wwin) && ISFOCUSED(wwin) && IS_RESIZABLE(wwin)) {
CloseWindowMenu(scr);
if (wwin->flags.maximized == MAX_VERTICAL | MAX_RIGHTHALF)
if (wwin->flags.maximized == (MAX_VERTICAL | MAX_RIGHTHALF))
wUnmaximizeWindow(wwin);
else
wMaximizeWindow(wwin, MAX_VERTICAL | MAX_RIGHTHALF | MAX_KEYBOARD);