mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
backends/x11: Drop users of clutter_input_device_set_stage()
There is no getter, so this information is useless. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
parent
cef6520836
commit
5d45722362
@ -1845,11 +1845,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
|||||||
device = g_hash_table_lookup (seat->devices_by_id,
|
device = g_hash_table_lookup (seat->devices_by_id,
|
||||||
GINT_TO_POINTER (xev->deviceid));
|
GINT_TO_POINTER (xev->deviceid));
|
||||||
|
|
||||||
/* Set the stage for core events coming out of nowhere (see bug #684509) */
|
|
||||||
if (clutter_input_device_get_device_mode (device) == CLUTTER_INPUT_MODE_MASTER &&
|
|
||||||
stage != NULL)
|
|
||||||
_clutter_input_device_set_stage (device, stage);
|
|
||||||
|
|
||||||
if (clutter_input_device_get_device_type (source_device) == CLUTTER_PAD_DEVICE)
|
if (clutter_input_device_get_device_type (source_device) == CLUTTER_PAD_DEVICE)
|
||||||
{
|
{
|
||||||
/* We got these events because of the passive button grab */
|
/* We got these events because of the passive button grab */
|
||||||
@ -2007,9 +2002,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device->stage != NULL)
|
|
||||||
_clutter_input_device_set_stage (source_device, device->stage);
|
|
||||||
|
|
||||||
if (xev->flags & XIPointerEmulated)
|
if (xev->flags & XIPointerEmulated)
|
||||||
_clutter_event_set_pointer_emulated (event, TRUE);
|
_clutter_event_set_pointer_emulated (event, TRUE);
|
||||||
|
|
||||||
@ -2041,11 +2033,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the stage for core events coming out of nowhere (see bug #684509) */
|
|
||||||
if (clutter_input_device_get_device_mode (device) == CLUTTER_INPUT_MODE_MASTER &&
|
|
||||||
stage != NULL)
|
|
||||||
_clutter_input_device_set_stage (device, stage);
|
|
||||||
|
|
||||||
if (scroll_valuators_changed (source_device,
|
if (scroll_valuators_changed (source_device,
|
||||||
&xev->valuators,
|
&xev->valuators,
|
||||||
&delta_x, &delta_y))
|
&delta_x, &delta_y))
|
||||||
@ -2098,9 +2085,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
|||||||
event->motion.y,
|
event->motion.y,
|
||||||
&xev->valuators);
|
&xev->valuators);
|
||||||
|
|
||||||
if (device->stage != NULL)
|
|
||||||
_clutter_input_device_set_stage (source_device, device->stage);
|
|
||||||
|
|
||||||
if (xev->flags & XIPointerEmulated)
|
if (xev->flags & XIPointerEmulated)
|
||||||
_clutter_event_set_pointer_emulated (event, TRUE);
|
_clutter_event_set_pointer_emulated (event, TRUE);
|
||||||
|
|
||||||
@ -2121,7 +2105,6 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
|||||||
XIDeviceEvent *xev = (XIDeviceEvent *) xi_event;
|
XIDeviceEvent *xev = (XIDeviceEvent *) xi_event;
|
||||||
device = g_hash_table_lookup (seat->devices_by_id,
|
device = g_hash_table_lookup (seat->devices_by_id,
|
||||||
GINT_TO_POINTER (xev->deviceid));
|
GINT_TO_POINTER (xev->deviceid));
|
||||||
_clutter_input_device_set_stage (device, stage);
|
|
||||||
}
|
}
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
case XI_TouchEnd:
|
case XI_TouchEnd:
|
||||||
|
Loading…
Reference in New Issue
Block a user