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: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9d92ea3b5a
commit
ae8f605ede
|
@ -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 )
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue