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

winex11.drv: Handle FocusIn/NotifyGrab and FocusOut/NotifyUngrab events.

These events are received on mutter, when moving undecorated managed windows, although Wine never grabs the keyboard itself. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9d92ea3b
......@@ -778,8 +778,9 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev )
switch (event->mode)
{
case NotifyGrab:
WARN( "unexpected FocusIn event with NotifyGrab mode\n" );
break;
/* these are received when moving undecorated managed windows on mutter */
keyboard_grabbed = TRUE;
return FALSE;
case NotifyWhileGrabbed:
keyboard_grabbed = TRUE;
break;
......@@ -879,8 +880,9 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
switch (event->mode)
{
case NotifyUngrab:
WARN( "unexpected FocusOut event with NotifyUngrab mode\n" );
break;
/* these are received when moving undecorated managed windows on mutter */
keyboard_grabbed = FALSE;
return FALSE;
case NotifyNormal:
keyboard_grabbed = FALSE;
break;
......
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