Prevent attempts to resize to less than 1x1.
SVN revision: 33228
This commit is contained in:
parent
942e108d71
commit
ed0d4b83d5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue