Commit 20e92c5a authored by Rui Matos's avatar Rui Matos

wayland: Set the clutter stage focus when we focus a window

Otherwise clutter events don't have their source actor properly set
and we aren't able to determine the MetaWindow to which a given
keybinding applies.
parent 0850da44
......@@ -210,10 +210,13 @@ meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
MetaWindow *window)
MetaWaylandSurface *surface = window ? window->surface : NULL;
ClutterActor *window_actor = window ? CLUTTER_ACTOR (meta_window_get_compositor_private (window)) : NULL;
meta_wayland_keyboard_set_focus (&compositor->seat->keyboard,
meta_wayland_data_device_set_keyboard_focus (compositor->seat);
clutter_stage_set_key_focus (CLUTTER_STAGE (compositor->stage), window_actor);
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