GNOME Bugzilla – Bug 719724
wayland: Set the clutter stage focus when we focus a window
Last modified: 2013-12-03 16:18:58 UTC
This fixes window keybindings like Alt+F10 to toggle maximize.
Created attachment 263341 [details] [review] 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.
Review of attachment 263341 [details] [review]: I just want to be careful that this won't confuse the actor/window tracking in gnome-shell (perhaps we need some carefully placed meta_is_wayland_compositor tests), but otherwise it looks fine.
(In reply to comment #2) > I just want to be careful that this won't confuse the actor/window tracking in > gnome-shell (perhaps we need some carefully placed meta_is_wayland_compositor > tests), but otherwise it looks fine. I think it shouldn't be a problem because either meta_display_process_key_event() or meta_wayland_compositor_handle_event() should consume the event away from clutter event processing before it ever reaches actors managed by gnome-shell. Attachment 263341 [details] pushed as 20e92c5 - wayland: Set the clutter stage focus when we focus a window