aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-15 19:27:44 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-15 19:27:44 +0200
commit3df9cc8a642398caef09f94d5a6e14d2ec3a46d5 (patch)
treee477c450645269123b70e87800e0bd97e98f9c53
parentb0ceb4f3b5f812d9577a8a1caa8e07e304c50432 (diff)
dont block on childrenMutex for checkHoverWidget
-rw-r--r--Crow/src/Widgets/GroupBase.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Crow/src/Widgets/GroupBase.cs b/Crow/src/Widgets/GroupBase.cs
index 33f26001..4c0267f8 100644
--- a/Crow/src/Widgets/GroupBase.cs
+++ b/Crow/src/Widgets/GroupBase.cs
@@ -288,7 +288,8 @@ namespace Crow
#region Mouse handling
public override void checkHoverWidget (MouseMoveEventArgs e) {
base.checkHoverWidget (e);//TODO:check if not possible to put it at beginning of meth to avoid doubled check to DropTarget.
- childrenRWLock.EnterReadLock ();
+ if (!childrenRWLock.TryEnterReadLock (10))
+ return;
for (int i = Children.Count - 1; i >= 0; i--) {
if (Children[i].MouseIsIn (e.Position)) {
Children[i].checkHoverWidget (e);