Don't call ui::SetAtomArrayProperty
with an empty vector (fails DCHECK)
This commit is contained in:
parent
7613afe6d7
commit
fd7af5c1d9
1 changed files with 3 additions and 2 deletions
|
@ -273,6 +273,7 @@ NativeWindowViews::NativeWindowViews(
|
||||||
state_atom_list.push_back(GetAtom("_NET_WM_STATE_MODAL"));
|
state_atom_list.push_back(GetAtom("_NET_WM_STATE_MODAL"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!state_atom_list.empty())
|
||||||
ui::SetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", "ATOM",
|
ui::SetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", "ATOM",
|
||||||
state_atom_list);
|
state_atom_list);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue