mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
compositor: The stage is always focused when we're a Wayland compositor
gnome-shell has some complex tracking to set the X input focus correctly, assuming various things about how the stage is set up in X11. For instance, it assumes that all actors that get key focus are gnome-shell Chrome actors that will get events through the stage, so when one of them is focused, it will try to set the focus back to the stage. In Wayland, windows are considered chrome actors that will get key events through the stage, so this only has the result of unfocusing any windows that have just received key focus. We should probably move this input focus moving to mutter instead of gnome-shell so we can better use mutter's internal state and heuristics.
This commit is contained in:
parent
f860df4b2d
commit
04b5232960
@ -333,6 +333,9 @@ meta_stage_is_focused (MetaScreen *screen)
|
||||
ClutterStage *stage;
|
||||
Window window;
|
||||
|
||||
if (meta_is_wayland_compositor ())
|
||||
return TRUE;
|
||||
|
||||
stage = CLUTTER_STAGE (meta_get_stage_for_screen (screen));
|
||||
if (!stage)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user