diff --git a/patches/wine/0005-osu/0003-winex11-Improved-osu-childwindow-hack-PROTON.patch b/patches/wine/0005-osu/0003-winex11-Improved-osu-childwindow-hack-PROTON.patch index 1d95a52..40eef5e 100644 --- a/patches/wine/0005-osu/0003-winex11-Improved-osu-childwindow-hack-PROTON.patch +++ b/patches/wine/0005-osu/0003-winex11-Improved-osu-childwindow-hack-PROTON.patch @@ -85,7 +85,7 @@ index 0c3c81bcda6..68c623e008c 100644 - return (!no_child_clipping_cached && NtUserGetWindowRelative( hwnd, GW_CHILD )) || NtUserGetAncestor( hwnd, GA_PARENT ) != NtUserGetDesktopWindow(); +static BOOL drawable_needs_clipping( HWND hwnd, BOOL known_child ) +{ -+ if (!use_osu_child_hack() || editor_visible( hwnd )) ++ if (!use_osu_child_hack() || editor_visible( NtUserGetDesktopWindow() )) + { + if (NtUserGetAncestor( hwnd, GA_PARENT ) != NtUserGetDesktopWindow()) return TRUE; /* child window, needs compositing */ + if (NtUserGetWindowRelative( hwnd, GW_CHILD )) return TRUE; /* window has children, needs compositing */