[PATCH 0/1] MR7104: winex11: Check window region instead of forcing offscreen on parent.
From: Rémi Bernon <rbernon(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57636 --- dlls/winex11.drv/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c index 60f044acbb0..71c50df95e6 100644 --- a/dlls/winex11.drv/init.c +++ b/dlls/winex11.drv/init.c @@ -224,8 +224,7 @@ BOOL needs_offscreen_rendering( HWND hwnd, BOOL known_child ) { if (NtUserGetDpiForWindow( hwnd ) != NtUserGetWinMonitorDpi( hwnd, MDT_RAW_DPI )) return TRUE; /* needs DPI scaling */ if (NtUserGetAncestor( hwnd, GA_PARENT ) != NtUserGetDesktopWindow()) return TRUE; /* child window, needs compositing */ - if (NtUserGetWindowRelative( hwnd, GW_CHILD )) return needs_client_window_clipping( hwnd ); /* window has children, needs compositing */ - if (known_child) return TRUE; /* window is/have children, needs compositing */ + if (NtUserGetWindowRelative( hwnd, GW_CHILD ) || known_child) return needs_client_window_clipping( hwnd ); /* window has children, needs compositing */ return FALSE; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7104
William Horvath (@whrvth) commented about dlls/winex11.drv/init.c:
{ if (NtUserGetDpiForWindow( hwnd ) != NtUserGetWinMonitorDpi( hwnd, MDT_RAW_DPI )) return TRUE; /* needs DPI scaling */ if (NtUserGetAncestor( hwnd, GA_PARENT ) != NtUserGetDesktopWindow()) return TRUE; /* child window, needs compositing */ - if (NtUserGetWindowRelative( hwnd, GW_CHILD )) return needs_client_window_clipping( hwnd ); /* window has children, needs compositing */ - if (known_child) return TRUE; /* window is/have children, needs compositing */ + if (NtUserGetWindowRelative( hwnd, GW_CHILD ) || known_child) return needs_client_window_clipping( hwnd ); /* window has children, needs compositing */
if (NtUserGetWindowRelative( hwnd, GW_CHILD ) || known_child) return needs_client_window_clipping( hwnd ); /* window has children, composite if they need clipping */
The comment here could be clearer. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7104#note_91492
participants (2)
-
Rémi Bernon -
William Horvath (@whrvth)