From 39b1a8302b6519b185445faf6beef9356543b905 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 6 Dec 2007 20:55:48 +0000 Subject: (svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small. --- src/window.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 33063fbeb..e22c4c87e 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2197,8 +2197,11 @@ void RelocateAllWindows(int neww, int newh) default: left = w->left; if (left + (w->width >> 1) >= neww) left = neww - w->width; + if (left < 0) left = 0; + top = w->top; if (top + (w->height >> 1) >= newh) top = newh - w->height; + if (top < 0) top = 0; break; } -- cgit v1.2.3-54-g00ecf