From d6cdcce1a29407830a5e612d7e70ac235784b312 Mon Sep 17 00:00:00 2001 From: Ivan Zlatev Date: Mon, 1 Sep 2008 12:12:29 +0000 Subject: [PATCH] 2008-08-24 Ivan N. Zlatev * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI. [Fixes bug #419001] svn path=/trunk/mcs/; revision=112015 --- .../Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 +++++ .../System.Windows.Forms/XplatUICarbon.cs | 6 ++++++ .../System.Windows.Forms/XplatUIX11.cs | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index ab283c58e30..55a3f1f216b 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2008-08-24 Ivan N. Zlatev + + * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI. + [Fixes bug #419001] + 2008-08-27 Jonathan Pobst * DataGridView.cs: Raise CellContentClick event. diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs index e8521587784..1d5e3a42049 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs @@ -2202,6 +2202,12 @@ namespace System.Windows.Forms { internal override bool MouseButtonsSwapped { get{ throw new NotImplementedException(); } } internal override bool MouseWheelPresent { get{ throw new NotImplementedException(); } } + internal override MouseButtons MouseButtons { + get { + return MouseState; + } + } + internal override Rectangle VirtualScreen { get { return WorkingArea; diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs index d1fb0d51be4..fda0b2efbdf 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs @@ -2258,6 +2258,12 @@ namespace System.Windows.Forms { } } + internal override MouseButtons MouseButtons { + get { + return MouseState; + } + } + internal override Rectangle VirtualScreen { get { IntPtr actual_atom; -- 2.25.1