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

Maximus: Take border into account

This patch fixes a minor bug in Maximus: the new window size didn't take the
 border into account. This bug was particularly visible with the
 "do not cover dock" option turned on.
This commit is contained in:
Nicolas Bonifas
2009-12-08 00:37:02 +01:00
committed by Carlos R. Mafra
parent d74a90d1bf
commit 41fdb79e28

View File

@@ -382,6 +382,8 @@ void wMaximizeWindow(WWindow * wwin, int directions)
if (directions & MAX_MAXIMUS) {
find_Maximus_geometry(wwin, usableArea, &new_x, &new_y, &new_width, &new_height);
new_width -= adj_size;
new_height -= adj_size;
if (WFLAGP(wwin, full_maximize) && new_y == 0) {
new_y -= wwin->frame->top_width;
new_height += wwin->frame->top_width - 1;