Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 764373002: desktop_window_tree_host_x11.cc: do not return immediately from DesktopWindowTreeHostX11::OnWMState… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..421891cb1983b15b9bd94954374fe6da0df3b2ef 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;
+ // It's acceptable that the call below fails, since some wms (e.g. Fluxbox)
+ // remove the _NET_WM_STATE property when no _NET_WM_STATE_* atom is set.
pkotwicz 2014/12/02 17:12:02 How about: "Ignore the return value of ui::GetAtom
Lukasz Jagielski 2014/12/02 22:29:33 Yeah, my English needs some polishing (hope not to
+ ui::GetAtomArrayProperty(xwindow_, "_NET_WM_STATE", &atom_list);
bool was_minimized = IsMinimized();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698