diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-18 10:08:28 -0400 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-10-10 15:33:13 +0300 |
commit | e1f17de218f148881ab8417f331fed7a8ddafd62 (patch) | |
tree | 241c07fc740961fa0bf3ff5ae107b4b2fecce7bc /src | |
parent | f033b5b498bf9e7193d6e0eb1c29071a303251a3 (diff) | |
download | metacity-e1f17de218f148881ab8417f331fed7a8ddafd62.tar.gz |
window: make window_is_terminal private
Diffstat (limited to 'src')
-rw-r--r-- | src/core/window-private.h | 3 | ||||
-rw-r--r-- | src/core/window.c | 11 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h index 147e81c7..67ade36a 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -532,9 +532,6 @@ gboolean meta_window_should_be_showing_on_workspace (MetaWindow *window, /* Return whether the window should be currently mapped */ gboolean meta_window_should_be_showing (MetaWindow *window); -/* See warning in window.c about this function */ -gboolean __window_is_terminal (MetaWindow *window); - void meta_window_update_struts (MetaWindow *window); /* this gets root coords */ diff --git a/src/core/window.c b/src/core/window.c index da2a2590..171b1705 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1983,8 +1983,8 @@ intervening_user_event_occurred (MetaWindow *window) * behavior is worthwhile. The basic idea is to get more feedback about how * usage scenarios of "strict" focus users and what they expect. See #326159. */ -gboolean -__window_is_terminal (MetaWindow *window) +static gboolean +window_is_terminal (MetaWindow *window) { if (window == NULL || window->res_class == NULL) return FALSE; @@ -2060,7 +2060,7 @@ window_state_on_map (MetaWindow *window, if (*takes_focus && meta_prefs_get_focus_new_windows () == G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT && !window->display->allow_terminal_deactivation && - __window_is_terminal (window->display->focus_window) && + window_is_terminal (window->display->focus_window) && !meta_window_is_ancestor_of_transient (window->display->focus_window, window)) { @@ -8704,9 +8704,8 @@ meta_window_set_user_time (MetaWindow *window, /* If this is a terminal, user interaction with it means the user likely * doesn't want to have focus transferred for now due to new windows. */ - if (meta_prefs_get_focus_new_windows () == - G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT && - __window_is_terminal (window)) + if (meta_prefs_get_focus_new_windows () == G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT && + window_is_terminal (window)) window->display->allow_terminal_deactivation = FALSE; } } |