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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user