st: Honor button mask on touch events
Even though it's not a "button", we use button1 to map to actions. Seems fair to refuse to press the StButton if it would not react to button1.
This commit is contained in:
parent
aca8aec94b
commit
b092c5f37d
@ -241,6 +241,8 @@ st_button_touch_event (ClutterActor *actor,
|
||||
|
||||
if (priv->pressed != 0)
|
||||
return CLUTTER_EVENT_PROPAGATE;
|
||||
if ((priv->button_mask & mask) == 0)
|
||||
return CLUTTER_EVENT_PROPAGATE;
|
||||
|
||||
device = clutter_event_get_device ((ClutterEvent*) event);
|
||||
sequence = clutter_event_get_event_sequence ((ClutterEvent*) event);
|
||||
|
Loading…
Reference in New Issue
Block a user