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

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

Issue 23093020: Set the WM_CLASS property of X11 windows in Linux Aura build. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 months 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
Index: ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
index aa75376f64a3771b851bf98064432c320194a2c8..025108b663fac4a3d902bcd00ee4ac78b45137d0 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
@@ -864,6 +864,11 @@ void DesktopRootWindowHostX11::InitX11Window(
PropModeAppend,
reinterpret_cast<unsigned char*>(&atom), 1);
}
+
+ if (!params.wm_class_name.empty() || !params.wm_class_class.empty()) {
+ ui::SetWindowClassHint(
+ xdisplay_, xwindow_, params.wm_class_name, params.wm_class_class);
+ }
}
// TODO(erg): This method should basically be everything I need form

Powered by Google App Engine
This is Rietveld 408576698