From 203611f08d6864575fd244f513e8c800fe04538e Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 5 Feb 2007 20:07:52 +0000 Subject: [PATCH] * Cursor.cs: We want the override cursor to be reset to NULL * when we set current cursor to the default cursor. svn path=/branches/mono-1-2-3/mcs/; revision=72324 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 2 ++ mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index fe517767958..6c66c4a54bc 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -3,6 +3,8 @@ * TreeView.cs: We need to check scrollbar visibility when window visibility is updated, because non visible trees don't ever add scrollbars. + * Cursor.cs: We want the override cursor to be reset to NULL when + we set current cursor to the default cursor. 2007-01-30 Jackson Harper diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs index 50e51bc5525..1d60aa48a35 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs @@ -200,7 +200,7 @@ namespace System.Windows.Forms { set { if (current != value) { current = value; - if (current == null){ + if (current == null || current == Cursors.Default){ // FIXME - define and set empty cursor XplatUI.OverrideCursor(IntPtr.Zero); } else -- 2.11.4.GIT