diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-03-12 15:16:59 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-03-12 15:16:59 +0200 |
commit | bf17c79171512d6a27c31e003e60a25e7a093226 (patch) | |
tree | 8f3753d492bf95bae8895119bb6c3e322ff4c05c | |
parent | f4f4a96d6d3ece2dc6a01dd1b39af223a33fb616 (diff) | |
download | metacity-bf17c79171512d6a27c31e003e60a25e7a093226.tar.gz |
window: do not unfocus on new window
It doesn't make much sense to globally unset focus when mapping
a new window.
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/998d921d418a7e943ea
-rw-r--r-- | src/core/window.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/core/window.c b/src/core/window.c index 31226c4e..ff2c34a1 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2200,23 +2200,7 @@ meta_window_show (MetaWindow *window) ( (!place_on_top_on_map && !takes_focus_on_map) || will_be_covered ) ) { - if (meta_window_is_ancestor_of_transient (focus_window, window)) - { - /* This happens for error dialogs or alerts; these need to remain on - * top, but it would be confusing to have its ancestor remain - * focused. - */ - meta_topic (META_DEBUG_STARTUP, - "The focus window %s is an ancestor of the newly mapped " - "window %s which isn't being focused. Unfocusing the " - "ancestor.\n", - focus_window->desc, window->desc); - - meta_display_focus_the_no_focus_window (window->display, - window->screen, - timestamp); - } - else + if (!meta_window_is_ancestor_of_transient (focus_window, window)) { needs_stacking_adjustment = TRUE; if (!window->placed) |