Skip to content

Commit

Permalink
window: do not unfocus on new window.
Browse files Browse the repository at this point in the history
Fix keyboard input on fullscreen VLC.
Based on Metacity commit https://gitlab.gnome.org/GNOME/metacity/-/commit/bf17c79
  • Loading branch information
rcaridade145 authored and raveit65 committed Sep 27, 2020
1 parent 0c2baf7 commit 6ea23df
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/core/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2168,23 +2168,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)
Expand Down

0 comments on commit 6ea23df

Please sign in to comment.