summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c
index b9261d32..620b3a2d 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;