summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/root_view.cc')
-rw-r--r--views/widget/root_view.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index fd42412..08b7e6e 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -915,12 +915,9 @@ void RootView::SetActiveCursor(gfx::NativeCursor cursor) {
previous_cursor_ = NULL;
}
#elif defined(OS_LINUX)
- if (cursor) {
- gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor);
+ gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor);
+ if (cursor)
gdk_cursor_destroy(cursor);
- } else {
- gdk_window_set_cursor(GetWidget()->GetNativeView()->window, NULL);
- }
#endif
}