mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-15 23:03:33 +01:00
Fix for unmaximize.
New way for traverse windows introduced an regression for maximize toggle from keyboard. Bring the maximize toggle back.
This commit is contained in:
@@ -492,8 +492,7 @@ void handleMaximize(WWindow *wwin, int directions)
|
||||
if ((wwin->flags.old_maximized & MAX_MAXIMUS) &&
|
||||
!(requested & MAX_MAXIMUS))
|
||||
wMaximizeWindow(wwin, MAX_MAXIMUS | flags, head);
|
||||
else {
|
||||
if (requested & MAX_LEFTHALF && current & MAX_LEFTHALF) {
|
||||
else if (requested & MAX_LEFTHALF && current & MAX_LEFTHALF) {
|
||||
p.x = wwin->frame_x - 100;
|
||||
p.y = 0;
|
||||
|
||||
@@ -506,8 +505,7 @@ void handleMaximize(WWindow *wwin, int directions)
|
||||
wMaximizeWindow(wwin, effective | flags, head);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (requested & MAX_RIGHTHALF && current & MAX_RIGHTHALF) {
|
||||
} else if (requested & MAX_RIGHTHALF && current & MAX_RIGHTHALF) {
|
||||
p.x = wwin->frame_x + wwin->frame->core->width + 100;
|
||||
p.y = 0;
|
||||
head = wGetHeadForPoint(wwin->screen_ptr, p);
|
||||
@@ -517,8 +515,8 @@ void handleMaximize(WWindow *wwin, int directions)
|
||||
effective &= ~(MAX_HORIZONTAL | MAX_RIGHTHALF);
|
||||
wMaximizeWindow(wwin, effective | flags, head);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
wUnmaximizeWindow(wwin);
|
||||
/* these alone mean vertical|horizontal toggle */
|
||||
} else if ((effective == MAX_LEFTHALF) ||
|
||||
(effective == MAX_RIGHTHALF) ||
|
||||
|
||||
Reference in New Issue
Block a user