mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter: Update device for the current tool in backends
This should happen deeper in backends, not here in clutter-main. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
parent
89a140d618
commit
c601a824e9
@ -1912,9 +1912,6 @@ _clutter_process_event_details (ClutterActor *stage,
|
||||
|
||||
case CLUTTER_PROXIMITY_IN:
|
||||
case CLUTTER_PROXIMITY_OUT:
|
||||
clutter_input_device_update_from_tool (clutter_event_get_source_device (event),
|
||||
clutter_event_get_device_tool (event));
|
||||
|
||||
if (_clutter_event_process_filters (event))
|
||||
break;
|
||||
|
||||
|
@ -1656,6 +1656,9 @@ input_device_update_tool (ClutterInputDevice *input_device,
|
||||
|
||||
if (evdev_device->last_tool != tool)
|
||||
{
|
||||
if (tool)
|
||||
clutter_input_device_update_from_tool (input_device, tool);
|
||||
|
||||
evdev_device->last_tool = tool;
|
||||
g_signal_emit_by_name (seat_impl->seat_native, "tool-changed",
|
||||
input_device, tool);
|
||||
|
@ -960,6 +960,9 @@ translate_property_event (MetaSeatX11 *seat_x11,
|
||||
|
||||
meta_input_device_x11_update_tool (device, tool);
|
||||
g_signal_emit_by_name (seat_x11, "tool-changed", device, tool);
|
||||
|
||||
if (tool)
|
||||
clutter_input_device_update_from_tool (device, tool);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user