mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
drag-action: Use the symbolic constants for the button
https://bugzilla.gnome.org/show_bug.cgi?id=668692
This commit is contained in:
parent
60cddbd28e
commit
12a79a66d8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user