mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 01:14:04 +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:
parent
fd18690498
commit
f2c8693a77
@ -107,7 +107,7 @@ static gboolean motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* Caution: hover_update may switch input layers */
|
/* 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 == old_sp) {
|
||||||
sp->state = input_idle;
|
sp->state = input_idle;
|
||||||
if (sp->ops->hover_end)
|
if (sp->ops->hover_end)
|
||||||
|
Loading…
Reference in New Issue
Block a user