[PATCH v3] winex11.drv: Destroy old clipping message window if it has been replaced
Alexandre Julliard
julliard at winehq.org
Tue Aug 13 04:23:43 CDT 2019
RĂ©mi Bernon <rbernon at 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 at winehq.org
More information about the wine-devel
mailing list