mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
display: Always use the key focused window for key events
We no longer grab the actor's key focus, so this is necessary.
This commit is contained in:
parent
7f195aec7a
commit
23b0f7be43
@ -1682,6 +1682,16 @@ get_window_for_event (MetaDisplay *display,
|
|||||||
if (display->grab_op != META_GRAB_OP_NONE)
|
if (display->grab_op != META_GRAB_OP_NONE)
|
||||||
return display->grab_window;
|
return display->grab_window;
|
||||||
|
|
||||||
|
/* Always use the key focused window for key events. */
|
||||||
|
switch (event->type)
|
||||||
|
{
|
||||||
|
case CLUTTER_KEY_PRESS:
|
||||||
|
case CLUTTER_KEY_RELEASE:
|
||||||
|
return display->focus_window;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
source = clutter_event_get_source (event);
|
source = clutter_event_get_source (event);
|
||||||
if (META_IS_SURFACE_ACTOR_WAYLAND (source))
|
if (META_IS_SURFACE_ACTOR_WAYLAND (source))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user