linux: Fix compilation error
This commit is contained in:
parent
59c95f6a7d
commit
c5c686fe8c
1 changed files with 5 additions and 5 deletions
|
@ -682,11 +682,11 @@ bool NativeWindowViews::IsVisibleOnAllWorkspaces() {
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
// Use the presence/absence of _NET_WM_STATE_STICKY in _NET_WM_STATE to
|
// Use the presence/absence of _NET_WM_STATE_STICKY in _NET_WM_STATE to
|
||||||
// determine whether the current window is visible on all workspaces.
|
// determine whether the current window is visible on all workspaces.
|
||||||
XAtom sticky_atom = gfx::GetAtom("_NET_WM_STATE_STICKY");
|
XAtom sticky_atom = GetAtom("_NET_WM_STATE_STICKY");
|
||||||
std::vector<XAtom> properties;
|
std::vector<XAtom> wm_states;
|
||||||
gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &properties);
|
ui::GetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", &wm_states);
|
||||||
return std::find(properties.begin(),
|
return std::find(wm_states.begin(),
|
||||||
properties.end(), sticky_atom) != properties.end();
|
wm_states.end(), sticky_atom) != wm_states.end();
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue