RĂ©mi Bernon rbernon@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.