Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 3c992813568aa97c66c5617ef3a75b1be63f99dd..dd8aa406385bf0b224a860a9b0b48e2c6ce27d15 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -1225,8 +1225,9 @@ gfx::Size DesktopWindowTreeHostX11::AdjustSize( |
void DesktopWindowTreeHostX11::OnWMStateUpdated() { |
std::vector< ::Atom> atom_list; |
- if (!ui::GetAtomArrayProperty(xwindow_, "_NET_WM_STATE", &atom_list)) |
- return; |
+ // Ignore the return value of ui::GetAtomArrayProperty(). Fluxbox removes the |
+ // _NET_WM_STATE property when no _NET_WM_STATE atoms are set. |
+ ui::GetAtomArrayProperty(xwindow_, "_NET_WM_STATE", &atom_list); |
bool was_minimized = IsMinimized(); |