From 399303b604ada334aeecc4e866dd5ecf2ebca336 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 23 Apr 2019 17:05:41 +0200 Subject: window: make docks and spashscreens appear focused Set the NET_WM_STATE_FOCUSED property on windows of type dock or spashscreen so that they don't get the state GTK_STATE_FLAG_BACKDROP set by default. Based on: https://gitlab.gnome.org/GNOME/metacity/commit/b3ef887 origin xfwm4 commit: https://git.xfce.org/xfce/xfwm4/commit/?id=0feb29e78bb3 --- src/core/window.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/window.c b/src/core/window.c index 0a2582e9..b9261d32 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8664,7 +8664,15 @@ meta_window_appears_focused (MetaWindow *window) meta_window_foreach_transient (window, transient_has_focus, &focus); return focus; } - return window->has_focus; + + if (window->has_focus) + return TRUE; + + if (window->type == META_WINDOW_DOCK || + window->type == META_WINDOW_SPLASHSCREEN) + return TRUE; + + return FALSE; } gboolean -- cgit v1.2.1