Prevent attempts to resize to less than 1x1.

SVN revision: 33228
This commit is contained in:
Kim Woelders 2007-12-24 07:41:03 +00:00
parent 942e108d71
commit ed0d4b83d5
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,10 @@ doEwinMoveResize(EWin * ewin, Desk * dsk, int x, int y, int w, int h, int flags)
{
ICCCM_SizeMatch(ewin, w, h, &w, &h);
}
if (w <= 0)
w = 1;
if (h <= 0)
h = 1;
if ((w != ewin->client.w) || (h != ewin->client.h))
resize = 2;