summaryrefslogtreecommitdiff
path: root/gui/input.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-18 04:36:14 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-18 04:36:14 -0300
commit9d4024fedd6fd99f81c4a2f652e8614c22f9c81f (patch)
tree8ba7353e70b7bf30463719e406a5627f13541dd8 /gui/input.c
parentaa9fc0277527a0a0d291dfc2ce9b569baa3fc5e8 (diff)
downloadeeshow-9d4024fedd6fd99f81c4a2f652e8614c22f9c81f.tar.gz
eeshow-9d4024fedd6fd99f81c4a2f652e8614c22f9c81f.tar.bz2
eeshow-9d4024fedd6fd99f81c4a2f652e8614c22f9c81f.zip
eeshow/gui/input.c (motion_notify_event): misinterpreted hover_update result
This almost worked, except that it sometimes left hovering on after leaving an AoI, which then caused a subsequent drag to be handled as hover_click. This caused the history list sometimes to be closed when trying to drag.
Diffstat (limited to 'gui/input.c')
-rw-r--r--gui/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/input.c b/gui/input.c
index eb9309d..f75ea3d 100644
--- a/gui/input.c
+++ b/gui/input.c
@@ -107,7 +107,7 @@ static gboolean motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
break;
/* Caution: hover_update may switch input layers */
- if (sp->ops->hover_update(sp->user, event->x, event->y) &&
+ if (!sp->ops->hover_update(sp->user, event->x, event->y) &&
sp == old_sp) {
sp->state = input_idle;
if (sp->ops->hover_end)