13 Aug
2019
13 Aug
'19
4:23 a.m.
Rémi Bernon <rbernon(a)codeweavers.com> writes:
@@ -499,6 +499,14 @@ LRESULT clip_cursor_notify( HWND hwnd, HWND new_clip_hwnd ) GetClipCursor( &clip ); X11DRV_ClipCursor( &clip ); } + else if (hwnd) + { + /* This is a notification send by the desktop window to an old + * dangling clip window. + */ + TRACE( "destroying old clip hwnd %p\n", hwnd ); + DestroyWindow( hwnd ); + }
If we get here because the foreground window has changed, you'll end up destroying the previous foreground window. -- Alexandre Julliard julliard(a)winehq.org