[metacity] window: make window_is_terminal private
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: make window_is_terminal private
- Date: Sat, 10 Oct 2020 12:47:08 +0000 (UTC)
commit e1f17de218f148881ab8417f331fed7a8ddafd62
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Mar 18 10:08:28 2014 -0400
window: make window_is_terminal private
src/core/window-private.h | 3 ---
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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]