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 ) ...@@ -778,8 +778,9 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev )
switch (event->mode) switch (event->mode)
{ {
case NotifyGrab: case NotifyGrab:
WARN( "unexpected FocusIn event with NotifyGrab mode\n" ); /* these are received when moving undecorated managed windows on mutter */
break; keyboard_grabbed = TRUE;
return FALSE;
case NotifyWhileGrabbed: case NotifyWhileGrabbed:
keyboard_grabbed = TRUE; keyboard_grabbed = TRUE;
break; break;
...@@ -879,8 +880,9 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev ) ...@@ -879,8 +880,9 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
switch (event->mode) switch (event->mode)
{ {
case NotifyUngrab: case NotifyUngrab:
WARN( "unexpected FocusOut event with NotifyUngrab mode\n" ); /* these are received when moving undecorated managed windows on mutter */
break; keyboard_grabbed = FALSE;
return FALSE;
case NotifyNormal: case NotifyNormal:
keyboard_grabbed = FALSE; keyboard_grabbed = FALSE;
break; 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