1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:05:21 +02:00

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.
This commit is contained in:
Werner Almesberger 2016-08-18 04:36:14 -03:00
parent fd18690498
commit f2c8693a77

View File

@ -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)