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

Unified Diff: ui/platform_window/x11/x11_window.cc

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WindowTreeAppTest.SetCursor. Created 5 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
Index: ui/platform_window/x11/x11_window.cc
diff --git a/ui/platform_window/x11/x11_window.cc b/ui/platform_window/x11/x11_window.cc
index 073fe4da3e12d6dc3b117a4d3106dc485cee363d..c84135fa4c3296c2178bc64d3185a95229fa4dcb 100644
--- a/ui/platform_window/x11/x11_window.cc
+++ b/ui/platform_window/x11/x11_window.cc
@@ -257,7 +257,9 @@ void X11Window::Minimize() {}
void X11Window::Restore() {}
-void X11Window::SetCursor(PlatformCursor cursor) {}
+void X11Window::SetCursor(PlatformCursor cursor) {
+ XDefineCursor(xdisplay_, xwindow_, cursor);
+}
void X11Window::MoveCursorTo(const gfx::Point& location) {}

Powered by Google App Engine
This is Rietveld 408576698