summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrcaridade145 <[email protected]>2020-09-06 18:24:19 +0100
committerraveit65 <[email protected]>2020-09-27 11:37:29 +0200
commit634057c2feed37d466d0740df32ff38fb2f5cfe1 (patch)
tree673fdce3dd30f964a39263d5b16c80f1255aad0b /src
parent17b7c90b471ab049c3860a0fcfcd8aa9580467e7 (diff)
downloadmarco-634057c2feed37d466d0740df32ff38fb2f5cfe1.tar.bz2
marco-634057c2feed37d466d0740df32ff38fb2f5cfe1.tar.xz
window: do not unfocus on new window.
Fix keyboard input on fullscreen VLC. Based on Metacity commit https://gitlab.gnome.org/GNOME/metacity/-/commit/bf17c79
Diffstat (limited to 'src')
-rw-r--r--src/core/window.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/core/window.c b/src/core/window.c
index bc04b644..a3fb66ac 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2175,23 +2175,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)