mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Fix half_scr_width calculation
Moved the half_scr_width calculation to after the usableArea = wGetUsableAreaForHead(scr, head, &totalArea, True); call. This fixes the problem where windows that get "half screen maximized" cover the dock or clip.
This commit is contained in:
committed by
Carlos R. Mafra
parent
229b6984de
commit
2ed9c12ee5
@@ -303,7 +303,6 @@ void wMaximizeWindow(WWindow * wwin, int directions)
|
||||
totalArea.x2 = wwin->screen_ptr->scr_width;
|
||||
totalArea.y2 = wwin->screen_ptr->scr_height;
|
||||
usableArea = totalArea;
|
||||
half_scr_width = (usableArea.x2 - usableArea.x1)/2;
|
||||
|
||||
if (!(directions & MAX_IGNORE_XINERAMA)) {
|
||||
WScreen *scr = wwin->screen_ptr;
|
||||
@@ -320,6 +319,7 @@ void wMaximizeWindow(WWindow * wwin, int directions)
|
||||
if (WFLAGP(wwin, full_maximize)) {
|
||||
usableArea = totalArea;
|
||||
}
|
||||
half_scr_width = (usableArea.x2 - usableArea.x1)/2;
|
||||
|
||||
if (wwin->flags.shaded) {
|
||||
wwin->flags.skip_next_animation = 1;
|
||||
|
||||
Reference in New Issue
Block a user