aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-09-14 15:02:40 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-10-12 10:37:23 -0400
commit443229994785eb81c075de30635aa973643fd65f (patch)
tree9e0cbf7d58774417ef88339686fd9e3ebf790aa5
parenthide clients again after show in idler if clients are on hidden desk (diff)
downloadenlightenment-443229994785eb81c075de30635aa973643fd65f.tar.gz
block recursive mouse eventing in bryce action handlers
ensure that only the outermost event adds a post callback to avoid triggering actions multiple times
-rw-r--r--src/bin/e_bryce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 503529b12..b5dda8b4b 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -606,6 +606,7 @@ _bryce_mouse_down(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, void *event
{
Bryce *b = data;
+ if (b->event_info == event_info) return;
b->event_info = event_info;
evas_post_event_callback_push(e, _bryce_mouse_down_post, b);
}
@@ -627,6 +628,7 @@ _bryce_mouse_up(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, void *event_i
{
Bryce *b = data;
+ if (b->event_info == event_info) return;
b->event_info = event_info;
evas_post_event_callback_push(e, _bryce_mouse_up_post, b);
}
@@ -648,6 +650,7 @@ _bryce_mouse_wheel(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, void *even
{
Bryce *b = data;
+ if (b->event_info == event_info) return;
b->event_info = event_info;
evas_post_event_callback_push(e, _bryce_mouse_wheel_post, b);
}