Commit b831dbfc authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11: Forcefully unmap the clipping window when it loses focus.

Fixes cursor not being released when alt-tabbing out of an unresponsive foreground window.
parent 89c36c11
......@@ -843,7 +843,13 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
if (event->detail == NotifyPointer)
{
if (!hwnd && event->window == x11drv_thread_data()->clip_window) NtUserClipCursor( NULL );
if (!hwnd && event->window == x11drv_thread_data()->clip_window)
{
NtUserClipCursor( NULL );
/* NtUserClipCursor will ask the foreground window to ungrab the cursor, but
* it might not be responsive, so unmap the clipping window ourselves too */
XUnmapWindow( event->display, event->window );
}
return TRUE;
}
if (!hwnd) return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment