[mutter/wip/carlosg/input-thread: 83/160] backends/x11: Drop all users of clutter_input_device_get_stage()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 83/160] backends/x11: Drop all users of clutter_input_device_get_stage()
- Date: Tue, 22 Sep 2020 12:33:58 +0000 (UTC)
commit 90fdb68d0a0ac85aa2766be21360ff5ee137513a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 5 16:53:34 2020 +0200
backends/x11: Drop all users of clutter_input_device_get_stage()
And clutter_input_device_get_pointer_stage().
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
src/backends/x11/meta-seat-x11.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/backends/x11/meta-seat-x11.c b/src/backends/x11/meta-seat-x11.c
index 17d2a96964..8962f2870d 100644
--- a/src/backends/x11/meta-seat-x11.c
+++ b/src/backends/x11/meta-seat-x11.c
@@ -1847,7 +1847,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
/* Set the stage for core events coming out of nowhere (see bug #684509) */
if (clutter_input_device_get_device_mode (device) == CLUTTER_INPUT_MODE_LOGICAL &&
- clutter_input_device_get_pointer_stage (device) == NULL &&
stage != NULL)
_clutter_input_device_set_stage (device, stage);
@@ -2044,7 +2043,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
/* Set the stage for core events coming out of nowhere (see bug #684509) */
if (clutter_input_device_get_device_mode (device) == CLUTTER_INPUT_MODE_LOGICAL &&
- clutter_input_device_get_pointer_stage (device) == NULL &&
stage != NULL)
_clutter_input_device_set_stage (device, stage);
@@ -2123,8 +2121,7 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
XIDeviceEvent *xev = (XIDeviceEvent *) xi_event;
device = g_hash_table_lookup (seat->devices_by_id,
GINT_TO_POINTER (xev->deviceid));
- if (!_clutter_input_device_get_stage (device))
- _clutter_input_device_set_stage (device, stage);
+ _clutter_input_device_set_stage (device, stage);
}
/* Fall through */
case XI_TouchEnd:
@@ -2254,14 +2251,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
}
else
{
- if (device->stage == NULL)
- {
- g_debug ("Discarding Leave for ButtonRelease "
- "event off-stage");
- retval = FALSE;
- break;
- }
-
event->crossing.type = event->type = CLUTTER_LEAVE;
event->crossing.stage = stage;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]