summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
authorsaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 18:26:33 +0000
committersaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 18:26:33 +0000
commit0daefc769a7578184c1c57ef2b59970a41d8cf79 (patch)
tree3a45d29df6ce8afccf3ec9ad0fb1267b0fa36348 /views/widget
parente3d7fb3185cbdc4970ff7d8d1aa89d25a9657e78 (diff)
downloadchromium_src-0daefc769a7578184c1c57ef2b59970a41d8cf79.zip
chromium_src-0daefc769a7578184c1c57ef2b59970a41d8cf79.tar.gz
chromium_src-0daefc769a7578184c1c57ef2b59970a41d8cf79.tar.bz2
Make cursor a bit more visible a bit more often
BUG=none TEST=none Review URL: http://codereview.chromium.org/7282001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/native_widget_gtk.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
index fddcdc1..aef20078 100644
--- a/views/widget/native_widget_gtk.cc
+++ b/views/widget/native_widget_gtk.cc
@@ -1228,8 +1228,9 @@ void NativeWidgetGtk::SchedulePaintInRect(const gfx::Rect& rect) {
void NativeWidgetGtk::SetCursor(gfx::NativeCursor cursor) {
#if defined(TOUCH_UI) && defined(HAVE_XINPUT2)
- if (!TouchFactory::GetInstance()->is_cursor_visible() &&
- !TouchFactory::GetInstance()->keep_mouse_cursor())
+ if (TouchFactory::GetInstance()->keep_mouse_cursor())
+ cursor = gfx::GetCursor(GDK_ARROW);
+ else if (!TouchFactory::GetInstance()->is_cursor_visible())
cursor = gfx::GetCursor(GDK_BLANK_CURSOR);
#endif
// |window_contents_| is placed on top of |widget_|. So the cursor needs to be