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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 2501763005: set WM_CLASS in X11 window host. (Closed)
Patch Set: Use ui::SetWindowClassHint instead. Created 4 years, 1 month 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/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 37efdf4b65b98773ed5e6c2d276d375c6a7f76bc..c618a1ced10224bd7a8bdc9c35934488f3c3520f 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -160,6 +160,7 @@ WindowTreeHostX11::WindowTreeHostX11(const gfx::Rect& bounds)
// We need a WM_CLIENT_MACHINE and WM_LOCALE_NAME value so we integrate with
// the desktop environment.
XSetWMProperties(xdisplay_, xwindow_, NULL, NULL, NULL, 0, NULL, NULL, NULL);
+ ui::SetWindowClassHint(xdisplay_, xwindow_, "chromiumos", "ChromiumOS");
// Likewise, the X server needs to know this window's pid so it knows which
// program to kill if the window hangs.
« 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