Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2010-06-28 20:24:17 +0400
committerLluis Sanchez <lluis@novell.com>2010-06-28 20:24:17 +0400
commitb019adbc1638356e7777906bf7292c74268f633d (patch)
treef4524fb8d04e947ca642dec2a08c00bb29bbe1c1 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking
parenta3e666b2594acdd8329b048df243c668f4530123 (diff)
* MonoDevelop.Components.Docking/DockBarItem.cs: Don't hide the item
if the mouse pointer is inside the window. Fixes bug #565714 - Autohidden pads hide when viewing treeview tooltips. svn path=/trunk/monodevelop/; revision=159610
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
index 51e17512f8..fb1519b9b7 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
@@ -286,7 +286,12 @@ namespace MonoDevelop.Components.Docking
if (autoHideTimeout == uint.MaxValue) {
autoHideTimeout = GLib.Timeout.Add (force ? 0 : bar.Frame.AutoHideDelay, delegate {
// Don't hide the item if it has the focus. Try again later.
- if (it.Widget.FocusChild != null)
+ if (it.Widget.FocusChild != null && !force)
+ return true;
+ // Don't hide the item if the mouse pointer is still inside the window. Try again later.
+ int px, py;
+ it.Widget.GetPointer (out px, out py);
+ if (it.Widget.Visible && it.Widget.IsRealized && it.Widget.Allocation.Contains (px, py) && !force)
return true;
autoHideTimeout = uint.MaxValue;
AutoHide (true);