From b4bf3cc6e1a121230812113d6dad9b734109db7f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 23 Apr 2019 18:33:10 +0200 Subject: window: set atom__NET_WM_STATE_FOCUSED for meta_window_appears_focused --- src/core/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index af028c3e..073a9241 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1322,7 +1322,7 @@ set_net_wm_state (MetaWindow *window) data[i] = window->display->atom__NET_WM_STATE_STICKY; ++i; } - if (window->has_focus) + if (meta_window_appears_focused (window)) { data[i] = window->display->atom__NET_WM_STATE_FOCUSED; ++i; -- cgit v1.2.1