mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
made restore from winspector.c automatically apply
This commit is contained in:
@@ -1844,8 +1844,11 @@ wWindowConstrainSize(WWindow *wwin, int *nwidth, int *nheight)
|
||||
height = (((height - minH) / hinc) * hinc) + minH;
|
||||
}
|
||||
|
||||
*nwidth = width;
|
||||
*nheight = height;
|
||||
/* broken stupid apps may cause preposterous values for these.. */
|
||||
if (width > 0)
|
||||
*nwidth = width;
|
||||
if (height > 0)
|
||||
*nheight = height;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user