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

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: Respond to reviews. 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 b6a1c134c4a5a92485b9be17b4ee16d66c043aad..9fa5a7c00ac5f8f0e3e150484deb5cc10e480ddd 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
@@ -871,6 +871,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