Alexandre Julliard : winex11: Don't delay mapping 0-sized layered windows.

Alexandre Julliard julliard at winehq.org
Tue Mar 23 15:07:44 CDT 2021


Module: wine
Branch: oldstable
Commit: 5cbb15aca112f6592e593348a981461475c21ebb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5cbb15aca112f6592e593348a981461475c21ebb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan  4 13:43:39 2021 +0100

winex11: Don't delay mapping 0-sized layered windows.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49575
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit b79211efececee381f6a2c5adce3cf83f3f65679)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/winex11.drv/window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index eb2ebcefa86..7510d771c78 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2455,7 +2455,8 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
             BOOL needs_map = TRUE;
 
             /* layered windows are mapped only once their attributes are set */
-            if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_LAYERED) needs_map = data->layered;
+            if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_LAYERED)
+                needs_map = data->layered || IsRectEmpty( rectWindow );
             release_win_data( data );
             if (needs_icon) fetch_icon_data( hwnd, 0, 0 );
             if (needs_map) map_window( hwnd, new_style );




More information about the wine-cvs mailing list