1
0
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:
kojima
2000-03-10 00:28:55 +00:00
parent 150432ff95
commit 90ab2c15cb
6 changed files with 27 additions and 14 deletions

View File

@@ -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;
}