drag-action: Use the symbolic constants for the button
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 27 Jan 2012 09:46:10 +0000 (09:46 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 27 Jan 2012 09:46:10 +0000 (09:46 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=668692

clutter/clutter-drag-action.c

index be5752f..f03280f 100644 (file)
@@ -367,7 +367,8 @@ on_button_press (ClutterActor      *actor,
   if (!clutter_actor_meta_get_enabled (CLUTTER_ACTOR_META (action)))
     return CLUTTER_EVENT_PROPAGATE;
 
-  if (clutter_event_get_button (event) != 1)
+  /* dragging is only performed using the primary button */
+  if (clutter_event_get_button (event) != CLUTTER_BUTTON_PRIMARY)
     return CLUTTER_EVENT_PROPAGATE;
 
   if (priv->stage == NULL)