diff --git a/src/core/window.c b/src/core/window.c index 03dd0506a..1451f0d18 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1990,6 +1990,15 @@ window_state_on_map (MetaWindow *window, return; } + /* Do not focus window on map if input is already taken by the + * compositor. + */ + if (!meta_display_windows_are_interactable (window->display)) + { + *takes_focus = FALSE; + return; + } + /* Terminal usage may be different; some users intend to launch * many apps in quick succession or to just view things in the new * window while still interacting with the terminal. In that case,