From c5c686fe8cbd04209b02a6de7866744fc6522287 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 29 Mar 2015 21:35:40 +0800 Subject: [PATCH] linux: Fix compilation error --- atom/browser/native_window_views.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 74f9129b..9dc07099 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -682,11 +682,11 @@ bool NativeWindowViews::IsVisibleOnAllWorkspaces() { #if defined(USE_X11) // Use the presence/absence of _NET_WM_STATE_STICKY in _NET_WM_STATE to // determine whether the current window is visible on all workspaces. - XAtom sticky_atom = gfx::GetAtom("_NET_WM_STATE_STICKY"); - std::vector properties; - gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &properties); - return std::find(properties.begin(), - properties.end(), sticky_atom) != properties.end(); + XAtom sticky_atom = GetAtom("_NET_WM_STATE_STICKY"); + std::vector wm_states; + ui::GetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", &wm_states); + return std::find(wm_states.begin(), + wm_states.end(), sticky_atom) != wm_states.end(); #endif return false; } -- 2.43.0