1
0
Fork 0

tests: Drop dependency on click count

This call is being removed, in favor of in-place handling, or a
ClutterGestureAction eventually.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>
This commit is contained in:
Carlos Garnacho 2021-09-27 20:41:50 +02:00
parent 8c4c3f0308
commit 33ca5e3d80
2 changed files with 3 additions and 6 deletions

View file

@ -263,19 +263,17 @@ input_cb (ClutterActor *actor,
break;
case CLUTTER_BUTTON_PRESS:
clutter_event_get_position (event, &position);
g_print ("[%s] BUTTON PRESS (button:%i, click count:%i coords:%.02f,%.02f device:%s/%s, state:%s)",
g_print ("[%s] BUTTON PRESS (button:%i, coords:%.02f,%.02f device:%s/%s, state:%s)",
clutter_actor_get_name (source_actor),
clutter_event_get_button (event),
clutter_event_get_click_count (event),
position.x, position.y,
device_name, source_name, state);
break;
case CLUTTER_BUTTON_RELEASE:
clutter_event_get_position (event, &position);
g_print ("[%s] BUTTON RELEASE (button:%i, click count:%i coords:%.02f,%.02f device:%s/%s state:%s)",
g_print ("[%s] BUTTON RELEASE (button:%i, coords:%.02f,%.02f device:%s/%s state:%s)",
clutter_actor_get_name (source_actor),
clutter_event_get_button (event),
clutter_event_get_click_count (event),
position.x, position.y,
device_name, source_name, state);

View file

@ -41,8 +41,7 @@ debug_event_cb (ClutterActor *actor,
printf("[%s] LEAVE", source);
break;
case CLUTTER_BUTTON_PRESS:
printf("[%s] BUTTON PRESS (click count:%i)",
source, event->button.click_count);
printf("[%s] BUTTON PRESS", source);
break;
case CLUTTER_BUTTON_RELEASE:
printf("[%s] BUTTON RELEASE", source);