From 32dcf77a8f1fe6a960893bad07a3300b92971d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 4 Apr 2019 20:29:00 +0200 Subject: [PATCH] clutter/text: Switch to input device grabs The old global/context grabs are being removed in favour of input device grabs. https://gitlab.gnome.org/GNOME/mutter/merge_requests/536 --- clutter/clutter/clutter-text.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c index 4d75d9921..f8e5efa38 100644 --- a/clutter/clutter/clutter-text.c +++ b/clutter/clutter/clutter-text.c @@ -2260,7 +2260,10 @@ clutter_text_press (ClutterActor *actor, priv->in_select_drag = TRUE; if (type == CLUTTER_BUTTON_PRESS) - clutter_grab_pointer (actor); + { + clutter_input_device_grab (clutter_event_get_device (event), + actor); + } else { clutter_input_device_sequence_grab (clutter_event_get_device (event), @@ -2318,7 +2321,7 @@ clutter_text_release (ClutterActor *actor, { if (!priv->in_select_touch) { - clutter_ungrab_pointer (); + clutter_input_device_ungrab (clutter_event_get_device (event)); priv->in_select_drag = FALSE; return CLUTTER_EVENT_STOP;