drag-action: Capture stage leave

If we are dragging, we don't want the drag handle to emit a
::leave-event even if the pointer left the stage.
This commit is contained in:
Emmanuele Bassi 2010-08-11 14:42:56 +01:00
parent 1ec577438e
commit 9ab83cebfd

View File

@ -267,6 +267,11 @@ on_captured_event (ClutterActor *stage,
emit_drag_end (action, actor, event);
break;
case CLUTTER_LEAVE:
if (priv->in_drag)
return TRUE;
break;
default:
break;
}