Use the event's width and height not the translated window rect to recognize a zero sized window in the ConfigureNotify handler

Dmitry Timoshkov dmitry at baikal.ru
Mon Sep 19 09:22:41 CDT 2005


Hello,

this patch fixes a regression shown by the IE's About dialog: it's wrongly
sized and placed outside of the screen.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Use the event's width and height not the translated window rect
    to recognize a zero sized window in the ConfigureNotify handler.

--- cvs/hq/wine/dlls/x11drv/winpos.c	2005-09-13 15:09:34.000000000 +0900
+++ wine/dlls/x11drv/winpos.c	2005-09-19 23:13:25.000000000 +0900
@@ -1195,7 +1195,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, 
 
     if ((rect.right - rect.left == cx && rect.bottom - rect.top == cy) ||
         IsIconic(hwnd) ||
-        (IsRectEmpty( &rect ) && cx == 1 && cy == 1))
+        (IsRectEmpty( &rect ) && event->width == 1 && event->height == 1))
     {
         if (flags & SWP_NOMOVE) return;  /* if nothing changed, don't do anything */
         flags |= SWP_NOSIZE;






More information about the wine-patches mailing list