mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
backends/native: Add a bunch of "_in_impl" suffixes to functions
They're a dime a dozen. If it gets called exclusively from the input thread, it got one. Hopefully these breadcrumbs will be enough so people don't lose their way here. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
parent
820262e537
commit
c03be03cd3
@ -500,7 +500,7 @@ clamp_to_barrier (MetaBarrierImplNative *self,
|
||||
}
|
||||
|
||||
void
|
||||
meta_barrier_manager_native_process (MetaBarrierManagerNative *manager,
|
||||
meta_barrier_manager_native_process_in_impl (MetaBarrierManagerNative *manager,
|
||||
ClutterInputDevice *device,
|
||||
guint32 time,
|
||||
float *x,
|
||||
|
@ -41,7 +41,7 @@ typedef struct _MetaBarrierManagerNative MetaBarrierManagerNative;
|
||||
MetaBarrierImpl *meta_barrier_impl_native_new (MetaBarrier *barrier);
|
||||
|
||||
MetaBarrierManagerNative *meta_barrier_manager_native_new (void);
|
||||
void meta_barrier_manager_native_process (MetaBarrierManagerNative *manager,
|
||||
void meta_barrier_manager_native_process_in_impl (MetaBarrierManagerNative *manager,
|
||||
ClutterInputDevice *device,
|
||||
guint32 time,
|
||||
float *x,
|
||||
|
@ -198,7 +198,7 @@ meta_input_device_native_get_pad_feature_group (ClutterInputDevice *de
|
||||
static void
|
||||
meta_input_device_native_bell_notify (MetaInputDeviceNative *device)
|
||||
{
|
||||
meta_seat_impl_notify_bell (device->seat_impl);
|
||||
meta_seat_impl_notify_bell_in_impl (device->seat_impl);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -419,7 +419,7 @@ key_event_is_modifier (ClutterEvent *event)
|
||||
static void
|
||||
notify_stickykeys_mask (MetaInputDeviceNative *device)
|
||||
{
|
||||
meta_seat_impl_notify_kbd_a11y_mods_state_changed (device->seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_mods_state_changed_in_impl (device->seat_impl,
|
||||
device->stickykeys_latched_mask,
|
||||
device->stickykeys_locked_mask);
|
||||
}
|
||||
@ -438,7 +438,7 @@ update_internal_xkb_state (MetaInputDeviceNative *device,
|
||||
|
||||
g_rw_lock_writer_lock (&seat_impl->state_lock);
|
||||
|
||||
xkb_state = meta_seat_impl_get_xkb_state (seat_impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (seat_impl);
|
||||
depressed_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_DEPRESSED);
|
||||
latched_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_LATCHED);
|
||||
locked_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_LOCKED);
|
||||
@ -478,7 +478,7 @@ update_stickykeys_event (ClutterEvent *event,
|
||||
|
||||
update_internal_xkb_state (device, new_latched_mask, new_locked_mask);
|
||||
|
||||
xkb_state = meta_seat_impl_get_xkb_state (seat_impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (seat_impl);
|
||||
effective_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_EFFECTIVE);
|
||||
latched_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_LATCHED);
|
||||
locked_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_LOCKED);
|
||||
@ -498,7 +498,7 @@ notify_stickykeys_change (MetaInputDeviceNative *device)
|
||||
device->stickykeys_depressed_mask = 0;
|
||||
update_internal_xkb_state (device, 0, 0);
|
||||
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed (device->seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed_in_impl (device->seat_impl,
|
||||
device->a11y_flags,
|
||||
META_A11Y_STICKY_KEYS_ENABLED);
|
||||
}
|
||||
@ -530,7 +530,7 @@ set_slowkeys_off (MetaInputDeviceNative *device)
|
||||
{
|
||||
device->a11y_flags &= ~META_A11Y_SLOW_KEYS_ENABLED;
|
||||
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed (device->seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed_in_impl (device->seat_impl,
|
||||
device->a11y_flags,
|
||||
META_A11Y_SLOW_KEYS_ENABLED);
|
||||
}
|
||||
@ -540,7 +540,7 @@ set_slowkeys_on (MetaInputDeviceNative *device)
|
||||
{
|
||||
device->a11y_flags |= META_A11Y_SLOW_KEYS_ENABLED;
|
||||
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed (device->seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed_in_impl (device->seat_impl,
|
||||
device->a11y_flags,
|
||||
META_A11Y_SLOW_KEYS_ENABLED);
|
||||
}
|
||||
@ -565,7 +565,7 @@ handle_stickykeys_press (ClutterEvent *event,
|
||||
return;
|
||||
}
|
||||
|
||||
xkb_state = meta_seat_impl_get_xkb_state (seat_impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (seat_impl);
|
||||
depressed_mods = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_DEPRESSED);
|
||||
/* Ignore the lock modifier mask, that one cannot be sticky, yet the
|
||||
* CAPS_LOCK key itself counts as a modifier as it might be remapped
|
||||
@ -602,7 +602,7 @@ handle_stickykeys_release (ClutterEvent *event,
|
||||
MetaSeatImpl *seat_impl = device->seat_impl;
|
||||
struct xkb_state *xkb_state;
|
||||
|
||||
xkb_state = meta_seat_impl_get_xkb_state (seat_impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (seat_impl);
|
||||
device->stickykeys_depressed_mask =
|
||||
xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_DEPRESSED);
|
||||
|
||||
@ -846,7 +846,7 @@ is_numlock_active (MetaInputDeviceNative *device)
|
||||
MetaSeatImpl *seat_impl = device->seat_impl;
|
||||
struct xkb_state *xkb_state;
|
||||
|
||||
xkb_state = meta_seat_impl_get_xkb_state (seat_impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (seat_impl);
|
||||
|
||||
return xkb_state_mod_name_is_active (xkb_state,
|
||||
"Mod2",
|
||||
@ -1126,7 +1126,7 @@ handle_mousekeys_release (ClutterEvent *event,
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_input_device_native_process_kbd_a11y_event (ClutterInputDevice *device,
|
||||
meta_input_device_native_process_kbd_a11y_event_in_impl (ClutterInputDevice *device,
|
||||
ClutterEvent *event)
|
||||
{
|
||||
MetaInputDeviceNative *device_evdev = META_INPUT_DEVICE_NATIVE (device);
|
||||
@ -1183,7 +1183,7 @@ meta_input_device_native_process_kbd_a11y_event (ClutterInputDevice *device,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_apply_kbd_a11y_settings (MetaInputDeviceNative *device,
|
||||
meta_input_device_native_apply_kbd_a11y_settings_in_impl (MetaInputDeviceNative *device,
|
||||
MetaKbdA11ySettings *settings)
|
||||
{
|
||||
MetaKeyboardA11yFlags changed_flags = (device->a11y_flags ^ settings->controls);
|
||||
@ -1222,7 +1222,7 @@ meta_input_device_native_apply_kbd_a11y_settings (MetaInputDeviceNative *device,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_a11y_maybe_notify_toggle_keys (MetaInputDeviceNative *device)
|
||||
meta_input_device_native_a11y_maybe_notify_toggle_keys_in_impl (MetaInputDeviceNative *device)
|
||||
{
|
||||
if (device->a11y_flags & META_A11Y_TOGGLE_KEYS_ENABLED)
|
||||
meta_input_device_native_bell_notify (device);
|
||||
@ -1324,7 +1324,7 @@ update_pad_features (MetaInputDeviceNative *device_native)
|
||||
* it with the provided seat.
|
||||
*/
|
||||
ClutterInputDevice *
|
||||
meta_input_device_native_new (MetaSeatImpl *seat_impl,
|
||||
meta_input_device_native_new_in_impl (MetaSeatImpl *seat_impl,
|
||||
struct libinput_device *libinput_device)
|
||||
{
|
||||
MetaInputDeviceNative *device;
|
||||
@ -1334,7 +1334,7 @@ meta_input_device_native_new (MetaSeatImpl *seat_impl,
|
||||
char *node_path;
|
||||
double width, height;
|
||||
|
||||
type = meta_input_device_native_determine_type (libinput_device);
|
||||
type = meta_input_device_native_determine_type_in_impl (libinput_device);
|
||||
vendor = g_strdup_printf ("%.4x", libinput_device_get_id_vendor (libinput_device));
|
||||
product = g_strdup_printf ("%.4x", libinput_device_get_id_product (libinput_device));
|
||||
node_path = g_strdup_printf ("/dev/input/%s", libinput_device_get_sysname (libinput_device));
|
||||
@ -1431,7 +1431,7 @@ meta_input_device_native_get_seat_impl (MetaInputDeviceNative *device)
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_update_leds (MetaInputDeviceNative *device,
|
||||
meta_input_device_native_update_leds_in_impl (MetaInputDeviceNative *device,
|
||||
enum libinput_led leds)
|
||||
{
|
||||
if (!device->libinput_device)
|
||||
@ -1441,7 +1441,7 @@ meta_input_device_native_update_leds (MetaInputDeviceNative *device,
|
||||
}
|
||||
|
||||
ClutterInputDeviceType
|
||||
meta_input_device_native_determine_type (struct libinput_device *ldev)
|
||||
meta_input_device_native_determine_type_in_impl (struct libinput_device *ldev)
|
||||
{
|
||||
/* This setting is specific to touchpads and alike, only in these
|
||||
* devices there is this additional layer of touch event interpretation.
|
||||
@ -1486,7 +1486,7 @@ meta_input_device_native_get_libinput_device (ClutterInputDevice *device)
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_translate_coordinates (ClutterInputDevice *device,
|
||||
meta_input_device_native_translate_coordinates_in_impl (ClutterInputDevice *device,
|
||||
MetaViewportInfo *viewports,
|
||||
float *x,
|
||||
float *y)
|
||||
@ -1521,7 +1521,7 @@ meta_input_device_native_translate_coordinates (ClutterInputDevice *device,
|
||||
}
|
||||
|
||||
MetaInputDeviceMapping
|
||||
meta_input_device_native_get_mapping_mode (ClutterInputDevice *device)
|
||||
meta_input_device_native_get_mapping_mode_in_impl (ClutterInputDevice *device)
|
||||
{
|
||||
MetaInputDeviceNative *device_native = META_INPUT_DEVICE_NATIVE (device);
|
||||
ClutterInputDeviceType device_type;
|
||||
@ -1539,7 +1539,7 @@ meta_input_device_native_get_mapping_mode (ClutterInputDevice *device)
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_set_mapping_mode (ClutterInputDevice *device,
|
||||
meta_input_device_native_set_mapping_mode_in_impl (ClutterInputDevice *device,
|
||||
MetaInputDeviceMapping mapping)
|
||||
{
|
||||
MetaInputDeviceNative *device_native = META_INPUT_DEVICE_NATIVE (device);
|
||||
@ -1556,7 +1556,7 @@ meta_input_device_native_set_mapping_mode (ClutterInputDevice *device,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_set_coords (MetaInputDeviceNative *device_native,
|
||||
meta_input_device_native_set_coords_in_impl (MetaInputDeviceNative *device_native,
|
||||
float x,
|
||||
float y)
|
||||
{
|
||||
@ -1565,7 +1565,7 @@ meta_input_device_native_set_coords (MetaInputDeviceNative *device_native,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_native_get_coords (MetaInputDeviceNative *device_native,
|
||||
meta_input_device_native_get_coords_in_impl (MetaInputDeviceNative *device_native,
|
||||
float *x,
|
||||
float *y)
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ struct _MetaInputDeviceNativeClass
|
||||
|
||||
GType meta_input_device_native_get_type (void) G_GNUC_CONST;
|
||||
|
||||
ClutterInputDevice * meta_input_device_native_new (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice * meta_input_device_native_new_in_impl (MetaSeatImpl *seat_impl,
|
||||
struct libinput_device *libinput_device);
|
||||
|
||||
ClutterInputDevice * meta_input_device_native_new_virtual (MetaSeatImpl *seat_impl,
|
||||
@ -121,35 +121,35 @@ ClutterInputDevice * meta_input_device_native_new_virtual (MetaSeatImpl
|
||||
|
||||
MetaSeatImpl * meta_input_device_native_get_seat_impl (MetaInputDeviceNative *device);
|
||||
|
||||
void meta_input_device_native_update_leds (MetaInputDeviceNative *device,
|
||||
void meta_input_device_native_update_leds_in_impl (MetaInputDeviceNative *device,
|
||||
enum libinput_led leds);
|
||||
|
||||
ClutterInputDeviceType meta_input_device_native_determine_type (struct libinput_device *libinput_device);
|
||||
ClutterInputDeviceType meta_input_device_native_determine_type_in_impl (struct libinput_device *libinput_device);
|
||||
|
||||
|
||||
void meta_input_device_native_translate_coordinates (ClutterInputDevice *device,
|
||||
void meta_input_device_native_translate_coordinates_in_impl (ClutterInputDevice *device,
|
||||
MetaViewportInfo *viewports,
|
||||
float *x,
|
||||
float *y);
|
||||
|
||||
MetaInputDeviceMapping meta_input_device_native_get_mapping_mode (ClutterInputDevice *device);
|
||||
void meta_input_device_native_set_mapping_mode (ClutterInputDevice *device,
|
||||
MetaInputDeviceMapping meta_input_device_native_get_mapping_mode_in_impl (ClutterInputDevice *device);
|
||||
void meta_input_device_native_set_mapping_mode_in_impl (ClutterInputDevice *device,
|
||||
MetaInputDeviceMapping mapping);
|
||||
|
||||
void meta_input_device_native_apply_kbd_a11y_settings (MetaInputDeviceNative *device,
|
||||
void meta_input_device_native_apply_kbd_a11y_settings_in_impl (MetaInputDeviceNative *device,
|
||||
MetaKbdA11ySettings *settings);
|
||||
|
||||
void meta_input_device_native_a11y_maybe_notify_toggle_keys (MetaInputDeviceNative *device_evdev);
|
||||
void meta_input_device_native_a11y_maybe_notify_toggle_keys_in_impl (MetaInputDeviceNative *device_evdev);
|
||||
|
||||
struct libinput_device * meta_input_device_native_get_libinput_device (ClutterInputDevice *device);
|
||||
|
||||
void meta_input_device_native_set_coords (MetaInputDeviceNative *device_native,
|
||||
void meta_input_device_native_set_coords_in_impl (MetaInputDeviceNative *device_native,
|
||||
float x,
|
||||
float y);
|
||||
void meta_input_device_native_get_coords (MetaInputDeviceNative *device_native,
|
||||
void meta_input_device_native_get_coords_in_impl (MetaInputDeviceNative *device_native,
|
||||
float *x,
|
||||
float *y);
|
||||
gboolean meta_input_device_native_process_kbd_a11y_event (ClutterInputDevice *device,
|
||||
gboolean meta_input_device_native_process_kbd_a11y_event_in_impl (ClutterInputDevice *device,
|
||||
ClutterEvent *event);
|
||||
|
||||
#endif /* META_INPUT_DEVICE_NATIVE_H */
|
||||
|
@ -90,7 +90,7 @@ meta_input_device_tool_native_new (struct libinput_tablet_tool *tool,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_tool_native_set_pressure_curve (ClutterInputDeviceTool *tool,
|
||||
meta_input_device_tool_native_set_pressure_curve_in_impl (ClutterInputDeviceTool *tool,
|
||||
double curve[4])
|
||||
{
|
||||
MetaInputDeviceToolNative *evdev_tool;
|
||||
@ -109,7 +109,7 @@ meta_input_device_tool_native_set_pressure_curve (ClutterInputDeviceTool *tool,
|
||||
}
|
||||
|
||||
void
|
||||
meta_input_device_tool_native_set_button_code (ClutterInputDeviceTool *tool,
|
||||
meta_input_device_tool_native_set_button_code_in_impl (ClutterInputDeviceTool *tool,
|
||||
uint32_t button,
|
||||
uint32_t evcode)
|
||||
{
|
||||
@ -152,7 +152,7 @@ calculate_bezier_position (double pos,
|
||||
}
|
||||
|
||||
double
|
||||
meta_input_device_tool_native_translate_pressure (ClutterInputDeviceTool *tool,
|
||||
meta_input_device_tool_native_translate_pressure_in_impl (ClutterInputDeviceTool *tool,
|
||||
double pressure)
|
||||
{
|
||||
MetaInputDeviceToolNative *evdev_tool;
|
||||
@ -169,7 +169,7 @@ meta_input_device_tool_native_translate_pressure (ClutterInputDeviceTool *tool,
|
||||
}
|
||||
|
||||
uint32_t
|
||||
meta_input_device_tool_native_get_button_code (ClutterInputDeviceTool *tool,
|
||||
meta_input_device_tool_native_get_button_code_in_impl (ClutterInputDeviceTool *tool,
|
||||
uint32_t button)
|
||||
{
|
||||
MetaInputDeviceToolNative *evdev_tool;
|
||||
|
@ -70,14 +70,14 @@ ClutterInputDeviceTool * meta_input_device_tool_native_new (struct libinput
|
||||
uint64_t serial,
|
||||
ClutterInputDeviceToolType type);
|
||||
|
||||
gdouble meta_input_device_tool_native_translate_pressure (ClutterInputDeviceTool *tool,
|
||||
gdouble meta_input_device_tool_native_translate_pressure_in_impl (ClutterInputDeviceTool *tool,
|
||||
double pressure);
|
||||
uint32_t meta_input_device_tool_native_get_button_code (ClutterInputDeviceTool *tool,
|
||||
uint32_t meta_input_device_tool_native_get_button_code_in_impl (ClutterInputDeviceTool *tool,
|
||||
uint32_t button);
|
||||
|
||||
void meta_input_device_tool_native_set_pressure_curve (ClutterInputDeviceTool *tool,
|
||||
void meta_input_device_tool_native_set_pressure_curve_in_impl (ClutterInputDeviceTool *tool,
|
||||
double curve[4]);
|
||||
void meta_input_device_tool_native_set_button_code (ClutterInputDeviceTool *tool,
|
||||
void meta_input_device_tool_native_set_button_code_in_impl (ClutterInputDeviceTool *tool,
|
||||
uint32_t button,
|
||||
uint32_t evcode);
|
||||
|
||||
|
@ -157,7 +157,7 @@ meta_input_settings_native_set_matrix (MetaInputSettings *settings,
|
||||
|
||||
if (clutter_input_device_get_device_type (device) ==
|
||||
CLUTTER_TOUCHSCREEN_DEVICE ||
|
||||
meta_input_device_native_get_mapping_mode (device) ==
|
||||
meta_input_device_native_get_mapping_mode_in_impl (device) ==
|
||||
META_INPUT_DEVICE_MAPPING_ABSOLUTE)
|
||||
{
|
||||
cairo_matrix_init (dev_matrix, matrix[0], matrix[3], matrix[1],
|
||||
@ -504,7 +504,7 @@ meta_input_settings_native_set_keyboard_repeat (MetaInputSettings *settings,
|
||||
MetaInputSettingsNative *input_settings_native;
|
||||
|
||||
input_settings_native = META_INPUT_SETTINGS_NATIVE (settings);
|
||||
meta_seat_impl_set_keyboard_repeat (input_settings_native->seat_impl,
|
||||
meta_seat_impl_set_keyboard_repeat_in_impl (input_settings_native->seat_impl,
|
||||
enabled, delay, interval);
|
||||
}
|
||||
|
||||
@ -636,7 +636,7 @@ meta_input_settings_native_set_tablet_mapping (MetaInputSettings *settings,
|
||||
else
|
||||
return;
|
||||
|
||||
meta_input_device_native_set_mapping_mode (device, dev_mapping);
|
||||
meta_input_device_native_set_mapping_mode_in_impl (device, dev_mapping);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@ -660,7 +660,7 @@ meta_input_settings_native_set_tablet_aspect_ratio (MetaInputSettings *settings
|
||||
MetaInputSettingsNative *input_settings_native;
|
||||
GTask *task;
|
||||
|
||||
if (meta_input_device_native_get_mapping_mode (device) ==
|
||||
if (meta_input_device_native_get_mapping_mode_in_impl (device) ==
|
||||
META_INPUT_DEVICE_MAPPING_RELATIVE)
|
||||
aspect_ratio = 0;
|
||||
|
||||
@ -718,7 +718,7 @@ meta_input_settings_native_set_stylus_pressure (MetaInputSettings *settings
|
||||
pressure_curve[2] = (gdouble) curve[2] / 100;
|
||||
pressure_curve[3] = (gdouble) curve[3] / 100;
|
||||
|
||||
meta_input_device_tool_native_set_pressure_curve (tool, pressure_curve);
|
||||
meta_input_device_tool_native_set_pressure_curve_in_impl (tool, pressure_curve);
|
||||
}
|
||||
|
||||
static guint
|
||||
@ -748,11 +748,11 @@ meta_input_settings_native_set_stylus_button_map (MetaInputSettings *se
|
||||
GDesktopStylusButtonAction secondary,
|
||||
GDesktopStylusButtonAction tertiary)
|
||||
{
|
||||
meta_input_device_tool_native_set_button_code (tool, CLUTTER_BUTTON_MIDDLE,
|
||||
meta_input_device_tool_native_set_button_code_in_impl (tool, CLUTTER_BUTTON_MIDDLE,
|
||||
action_to_evcode (primary));
|
||||
meta_input_device_tool_native_set_button_code (tool, CLUTTER_BUTTON_SECONDARY,
|
||||
meta_input_device_tool_native_set_button_code_in_impl (tool, CLUTTER_BUTTON_SECONDARY,
|
||||
action_to_evcode (secondary));
|
||||
meta_input_device_tool_native_set_button_code (tool, 8, /* Back */
|
||||
meta_input_device_tool_native_set_button_code_in_impl (tool, 8, /* Back */
|
||||
action_to_evcode (tertiary));
|
||||
}
|
||||
|
||||
@ -870,7 +870,7 @@ meta_input_settings_native_init (MetaInputSettingsNative *settings)
|
||||
}
|
||||
|
||||
MetaInputSettings *
|
||||
meta_input_settings_native_new (MetaSeatImpl *seat_impl)
|
||||
meta_input_settings_native_new_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
return g_object_new (META_TYPE_INPUT_SETTINGS_NATIVE,
|
||||
"seat-impl", seat_impl,
|
||||
|
@ -47,6 +47,6 @@ struct _MetaInputSettingsNativeClass
|
||||
|
||||
GType meta_input_settings_native_get_type (void) G_GNUC_CONST;
|
||||
|
||||
MetaInputSettings * meta_input_settings_native_new (MetaSeatImpl *seat_impl);
|
||||
MetaInputSettings * meta_input_settings_native_new_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
#endif /* META_INPUT_SETTINGS_NATIVE_H */
|
||||
|
@ -107,7 +107,7 @@ meta_keymap_native_init (MetaKeymapNative *keymap)
|
||||
}
|
||||
|
||||
void
|
||||
meta_keymap_native_set_keyboard_map (MetaKeymapNative *keymap,
|
||||
meta_keymap_native_set_keyboard_map_in_impl (MetaKeymapNative *keymap,
|
||||
struct xkb_keymap *xkb_keymap)
|
||||
{
|
||||
g_return_if_fail (xkb_keymap != NULL);
|
||||
@ -118,19 +118,19 @@ meta_keymap_native_set_keyboard_map (MetaKeymapNative *keymap,
|
||||
}
|
||||
|
||||
struct xkb_keymap *
|
||||
meta_keymap_native_get_keyboard_map (MetaKeymapNative *keymap)
|
||||
meta_keymap_native_get_keyboard_map_in_impl (MetaKeymapNative *keymap)
|
||||
{
|
||||
return keymap->keymap;
|
||||
}
|
||||
|
||||
void
|
||||
meta_keymap_native_update (MetaKeymapNative *keymap)
|
||||
meta_keymap_native_update_in_impl (MetaKeymapNative *keymap)
|
||||
{
|
||||
struct xkb_state *xkb_state;
|
||||
ClutterSeat *seat;
|
||||
|
||||
seat = clutter_backend_get_default_seat (clutter_get_default_backend ());
|
||||
xkb_state = meta_seat_impl_get_xkb_state (META_SEAT_NATIVE (seat)->impl);
|
||||
xkb_state = meta_seat_impl_get_xkb_state_in_impl (META_SEAT_NATIVE (seat)->impl);
|
||||
|
||||
keymap->num_lock =
|
||||
xkb_state_mod_name_is_active (xkb_state,
|
||||
|
@ -29,9 +29,9 @@ G_DECLARE_FINAL_TYPE (MetaKeymapNative, meta_keymap_native,
|
||||
META, KEYMAP_NATIVE,
|
||||
ClutterKeymap)
|
||||
|
||||
void meta_keymap_native_set_keyboard_map (MetaKeymapNative *keymap,
|
||||
void meta_keymap_native_set_keyboard_map_in_impl (MetaKeymapNative *keymap,
|
||||
struct xkb_keymap *xkb_keymap);
|
||||
struct xkb_keymap * meta_keymap_native_get_keyboard_map (MetaKeymapNative *keymap);
|
||||
void meta_keymap_native_update (MetaKeymapNative *keymap);
|
||||
struct xkb_keymap * meta_keymap_native_get_keyboard_map_in_impl (MetaKeymapNative *keymap);
|
||||
void meta_keymap_native_update_in_impl (MetaKeymapNative *keymap);
|
||||
|
||||
#endif /* META_KEYMAP_NATIVE_H */
|
||||
|
@ -385,7 +385,7 @@ out:
|
||||
}
|
||||
|
||||
static int
|
||||
on_evdev_device_open (const char *path,
|
||||
on_evdev_device_open_in_input_impl (const char *path,
|
||||
int flags,
|
||||
gpointer user_data,
|
||||
GError **error)
|
||||
@ -420,7 +420,7 @@ on_evdev_device_open (const char *path,
|
||||
}
|
||||
|
||||
static void
|
||||
on_evdev_device_close (int fd,
|
||||
on_evdev_device_close_in_input_impl (int fd,
|
||||
gpointer user_data)
|
||||
{
|
||||
MetaLauncher *self = user_data;
|
||||
@ -530,8 +530,8 @@ meta_launcher_new (GError **error)
|
||||
|
||||
meta_clutter_backend_native_set_seat_id (self->seat_id);
|
||||
|
||||
meta_seat_impl_set_device_callbacks (on_evdev_device_open,
|
||||
on_evdev_device_close,
|
||||
meta_seat_impl_set_device_callbacks (on_evdev_device_open_in_input_impl,
|
||||
on_evdev_device_close_in_input_impl,
|
||||
self);
|
||||
|
||||
g_signal_connect (self->session_proxy, "notify::active", G_CALLBACK (on_active_changed), self);
|
||||
|
@ -159,7 +159,7 @@ meta_seat_impl_run_input_task (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_sync_leds (MetaSeatImpl *seat_impl)
|
||||
meta_seat_impl_sync_leds_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
GSList *iter;
|
||||
MetaInputDeviceNative *device_native;
|
||||
@ -183,12 +183,12 @@ meta_seat_impl_sync_leds (MetaSeatImpl *seat_impl)
|
||||
for (iter = seat_impl->devices; iter; iter = iter->next)
|
||||
{
|
||||
device_native = iter->data;
|
||||
meta_input_device_native_update_leds (device_native, leds);
|
||||
meta_input_device_native_update_leds_in_impl (device_native, leds);
|
||||
}
|
||||
}
|
||||
|
||||
MetaTouchState *
|
||||
meta_seat_impl_lookup_touch_state (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_lookup_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot)
|
||||
{
|
||||
if (!seat_impl->touch_states)
|
||||
@ -205,7 +205,7 @@ meta_touch_state_free (MetaTouchState *state)
|
||||
}
|
||||
|
||||
MetaTouchState *
|
||||
meta_seat_impl_acquire_touch_state (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_acquire_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot)
|
||||
{
|
||||
MetaTouchState *touch_state;
|
||||
@ -233,7 +233,7 @@ meta_seat_impl_acquire_touch_state (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_release_touch_state (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_release_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot)
|
||||
{
|
||||
if (!seat_impl->touch_states)
|
||||
@ -271,7 +271,7 @@ keyboard_repeat (gpointer data)
|
||||
|
||||
g_return_val_if_fail (seat_impl->repeat_device != NULL, G_SOURCE_REMOVE);
|
||||
|
||||
meta_seat_impl_notify_key (seat_impl,
|
||||
meta_seat_impl_notify_key_in_impl (seat_impl,
|
||||
seat_impl->repeat_device,
|
||||
g_source_get_time (seat_impl->repeat_source),
|
||||
seat_impl->repeat_key,
|
||||
@ -372,7 +372,7 @@ emit_signal (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_key (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_key_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *device,
|
||||
uint64_t time_us,
|
||||
uint32_t key,
|
||||
@ -419,7 +419,7 @@ meta_seat_impl_notify_key (MetaSeatImpl *seat_impl,
|
||||
clutter_event_set_flags (event, CLUTTER_EVENT_FLAG_REPEATED);
|
||||
}
|
||||
|
||||
if (!meta_input_device_native_process_kbd_a11y_event (seat_impl->core_keyboard,
|
||||
if (!meta_input_device_native_process_kbd_a11y_event_in_impl (seat_impl->core_keyboard,
|
||||
event))
|
||||
queue_event (seat_impl, event);
|
||||
else
|
||||
@ -431,7 +431,7 @@ meta_seat_impl_notify_key (MetaSeatImpl *seat_impl,
|
||||
gboolean numlock_active;
|
||||
|
||||
emit_signal (seat_impl, signals[MODS_STATE_CHANGED], NULL, 0);
|
||||
meta_seat_impl_sync_leds (seat_impl);
|
||||
meta_seat_impl_sync_leds_in_impl (seat_impl);
|
||||
|
||||
numlock_active =
|
||||
xkb_state_mod_name_is_active (seat_impl->xkb, XKB_MOD_NAME_NUM,
|
||||
@ -441,7 +441,7 @@ meta_seat_impl_notify_key (MetaSeatImpl *seat_impl,
|
||||
numlock_active);
|
||||
|
||||
keyboard_native = META_INPUT_DEVICE_NATIVE (seat_impl->core_keyboard);
|
||||
meta_input_device_native_a11y_maybe_notify_toggle_keys (keyboard_native);
|
||||
meta_input_device_native_a11y_maybe_notify_toggle_keys_in_impl (keyboard_native);
|
||||
}
|
||||
|
||||
if (state == 0 || /* key release */
|
||||
@ -518,7 +518,7 @@ new_absolute_motion_event (MetaSeatImpl *seat_impl,
|
||||
/* This may happen early at startup */
|
||||
if (seat_impl->viewports)
|
||||
{
|
||||
meta_input_device_native_translate_coordinates (input_device,
|
||||
meta_input_device_native_translate_coordinates_in_impl (input_device,
|
||||
seat_impl->viewports,
|
||||
&event->motion.x,
|
||||
&event->motion.y);
|
||||
@ -537,13 +537,13 @@ new_absolute_motion_event (MetaSeatImpl *seat_impl,
|
||||
|
||||
clutter_event_set_device_tool (event, device_native->last_tool);
|
||||
clutter_event_set_device (event, input_device);
|
||||
meta_input_device_native_set_coords (META_INPUT_DEVICE_NATIVE (input_device),
|
||||
meta_input_device_native_set_coords_in_impl (META_INPUT_DEVICE_NATIVE (input_device),
|
||||
x, y);
|
||||
}
|
||||
else
|
||||
{
|
||||
clutter_event_set_device (event, seat_impl->core_pointer);
|
||||
meta_input_device_native_set_coords (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
meta_input_device_native_set_coords_in_impl (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
x, y);
|
||||
}
|
||||
|
||||
@ -559,7 +559,7 @@ new_absolute_motion_event (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_relative_motion (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float dx,
|
||||
@ -590,7 +590,7 @@ meta_seat_impl_notify_relative_motion (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_absolute_motion (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_absolute_motion_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float x,
|
||||
@ -605,7 +605,7 @@ meta_seat_impl_notify_absolute_motion (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_button (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_button_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
uint32_t button,
|
||||
@ -692,13 +692,13 @@ meta_seat_impl_notify_button (MetaSeatImpl *seat_impl,
|
||||
|
||||
if (clutter_input_device_get_device_type (input_device) == CLUTTER_TABLET_DEVICE)
|
||||
{
|
||||
meta_input_device_native_get_coords (device_native,
|
||||
meta_input_device_native_get_coords_in_impl (device_native,
|
||||
&event->button.x,
|
||||
&event->button.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
meta_input_device_native_get_coords (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
meta_input_device_native_get_coords_in_impl (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
&event->button.x,
|
||||
&event->button.y);
|
||||
}
|
||||
@ -711,7 +711,7 @@ meta_seat_impl_notify_button (MetaSeatImpl *seat_impl,
|
||||
/* Apply the button event code as per the tool mapping */
|
||||
uint32_t mapped_button;
|
||||
|
||||
mapped_button = meta_input_device_tool_native_get_button_code (device_native->last_tool,
|
||||
mapped_button = meta_input_device_tool_native_get_button_code_in_impl (device_native->last_tool,
|
||||
button_nr);
|
||||
if (mapped_button != 0)
|
||||
button = mapped_button;
|
||||
@ -850,7 +850,7 @@ check_notify_discrete_scroll (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_scroll_continuous (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_scroll_continuous_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
double dx,
|
||||
@ -891,7 +891,7 @@ discrete_to_direction (double discrete_dx,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_discrete_scroll (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_discrete_scroll_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
double discrete_dx,
|
||||
@ -910,7 +910,7 @@ meta_seat_impl_notify_discrete_scroll (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_touch_event (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_touch_event_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
ClutterEventType evtype,
|
||||
uint64_t time_us,
|
||||
@ -926,7 +926,7 @@ meta_seat_impl_notify_touch_event (MetaSeatImpl *seat_impl,
|
||||
event->touch.time = us2ms (time_us);
|
||||
event->touch.x = x;
|
||||
event->touch.y = y;
|
||||
meta_input_device_native_translate_coordinates (input_device,
|
||||
meta_input_device_native_translate_coordinates_in_impl (input_device,
|
||||
seat_impl->viewports,
|
||||
&event->touch.x,
|
||||
&event->touch.y);
|
||||
@ -966,7 +966,7 @@ constrain_to_barriers (MetaSeatImpl *seat_impl,
|
||||
float *new_x,
|
||||
float *new_y)
|
||||
{
|
||||
meta_barrier_manager_native_process (seat_impl->barrier_manager,
|
||||
meta_barrier_manager_native_process_in_impl (seat_impl->barrier_manager,
|
||||
device,
|
||||
time,
|
||||
new_x, new_y);
|
||||
@ -990,7 +990,7 @@ constrain_all_screen_monitors (ClutterInputDevice *device,
|
||||
float cx, cy;
|
||||
int i, n_views;
|
||||
|
||||
meta_input_device_native_get_coords (META_INPUT_DEVICE_NATIVE (device),
|
||||
meta_input_device_native_get_coords_in_impl (META_INPUT_DEVICE_NATIVE (device),
|
||||
&cx, &cy);
|
||||
|
||||
/* if we're trying to escape, clamp to the CRTC we're coming from */
|
||||
@ -1180,7 +1180,7 @@ meta_seat_impl_filter_relative_motion (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
static void
|
||||
notify_absolute_motion (ClutterInputDevice *input_device,
|
||||
notify_absolute_motion_in_impl (ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float x,
|
||||
float y,
|
||||
@ -1196,7 +1196,7 @@ notify_absolute_motion (ClutterInputDevice *input_device,
|
||||
}
|
||||
|
||||
static void
|
||||
notify_relative_tool_motion (ClutterInputDevice *input_device,
|
||||
notify_relative_tool_motion_in_impl (ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float dx,
|
||||
float dy,
|
||||
@ -1243,7 +1243,7 @@ notify_pinch_gesture_event (ClutterInputDevice *input_device,
|
||||
|
||||
event = clutter_event_new (CLUTTER_TOUCHPAD_PINCH);
|
||||
|
||||
meta_input_device_native_get_coords (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
meta_input_device_native_get_coords_in_impl (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
&event->touchpad_pinch.x,
|
||||
&event->touchpad_pinch.y);
|
||||
|
||||
@ -1283,7 +1283,7 @@ notify_swipe_gesture_event (ClutterInputDevice *input_device,
|
||||
event->touchpad_swipe.phase = phase;
|
||||
event->touchpad_swipe.time = us2ms (time_us);
|
||||
|
||||
meta_input_device_native_get_coords (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
meta_input_device_native_get_coords_in_impl (META_INPUT_DEVICE_NATIVE (seat_impl->core_pointer),
|
||||
&event->touchpad_swipe.x,
|
||||
&event->touchpad_swipe.y);
|
||||
event->touchpad_swipe.dx = dx;
|
||||
@ -1566,13 +1566,13 @@ evdev_add_device (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *device;
|
||||
gboolean is_touchscreen, is_tablet_switch;
|
||||
|
||||
device = meta_input_device_native_new (seat_impl, libinput_device);
|
||||
device = meta_input_device_native_new_in_impl (seat_impl, libinput_device);
|
||||
|
||||
seat_impl->devices = g_slist_prepend (seat_impl->devices, device);
|
||||
|
||||
/* Clutter assumes that device types are exclusive in the
|
||||
* ClutterInputDevice API */
|
||||
type = meta_input_device_native_determine_type (libinput_device);
|
||||
type = meta_input_device_native_determine_type_in_impl (libinput_device);
|
||||
|
||||
is_touchscreen = type == CLUTTER_TOUCHSCREEN_DEVICE;
|
||||
is_tablet_switch =
|
||||
@ -1772,7 +1772,7 @@ translate_tablet_axes (struct libinput_event_tablet_tool *tablet_event,
|
||||
if (libinput_tablet_tool_has_pressure (libinput_tool))
|
||||
{
|
||||
value = libinput_event_tablet_tool_get_pressure (tablet_event);
|
||||
value = meta_input_device_tool_native_translate_pressure (tool, value);
|
||||
value = meta_input_device_tool_native_translate_pressure_in_impl (tool, value);
|
||||
axes[CLUTTER_INPUT_AXIS_PRESSURE] = value;
|
||||
}
|
||||
|
||||
@ -1834,7 +1834,7 @@ notify_continuous_axis (MetaSeatImpl *seat_impl,
|
||||
finish_flags |= CLUTTER_SCROLL_FINISHED_VERTICAL;
|
||||
}
|
||||
|
||||
meta_seat_impl_notify_scroll_continuous (seat_impl, device, time_us,
|
||||
meta_seat_impl_notify_scroll_continuous_in_impl (seat_impl, device, time_us,
|
||||
dx, dy,
|
||||
scroll_source, finish_flags);
|
||||
}
|
||||
@ -1861,7 +1861,7 @@ notify_discrete_axis (MetaSeatImpl *seat_impl,
|
||||
axis_event, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);
|
||||
}
|
||||
|
||||
meta_seat_impl_notify_discrete_scroll (seat_impl, device,
|
||||
meta_seat_impl_notify_discrete_scroll_in_impl (seat_impl, device,
|
||||
time_us,
|
||||
discrete_dx, discrete_dy,
|
||||
scroll_source);
|
||||
@ -1891,19 +1891,19 @@ process_tablet_axis (MetaSeatImpl *seat_impl,
|
||||
|
||||
time = libinput_event_tablet_tool_get_time_usec (tablet_event);
|
||||
|
||||
if (meta_input_device_native_get_mapping_mode (device) == META_INPUT_DEVICE_MAPPING_RELATIVE ||
|
||||
if (meta_input_device_native_get_mapping_mode_in_impl (device) == META_INPUT_DEVICE_MAPPING_RELATIVE ||
|
||||
clutter_input_device_tool_get_tool_type (evdev_device->last_tool) == CLUTTER_INPUT_DEVICE_TOOL_MOUSE ||
|
||||
clutter_input_device_tool_get_tool_type (evdev_device->last_tool) == CLUTTER_INPUT_DEVICE_TOOL_LENS)
|
||||
{
|
||||
dx = libinput_event_tablet_tool_get_dx (tablet_event);
|
||||
dy = libinput_event_tablet_tool_get_dy (tablet_event);
|
||||
notify_relative_tool_motion (device, time, dx, dy, axes);
|
||||
notify_relative_tool_motion_in_impl (device, time, dx, dy, axes);
|
||||
}
|
||||
else
|
||||
{
|
||||
x = libinput_event_tablet_tool_get_x_transformed (tablet_event, stage_width);
|
||||
y = libinput_event_tablet_tool_get_y_transformed (tablet_event, stage_height);
|
||||
notify_absolute_motion (device, time, x, y, axes);
|
||||
notify_absolute_motion_in_impl (device, time, x, y, axes);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1947,7 +1947,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
break;
|
||||
}
|
||||
|
||||
meta_seat_impl_notify_key (seat_impl,
|
||||
meta_seat_impl_notify_key_in_impl (seat_impl,
|
||||
device,
|
||||
time_us, key, key_state, TRUE);
|
||||
|
||||
@ -1971,7 +1971,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
dx_unaccel = libinput_event_pointer_get_dx_unaccelerated (pointer_event);
|
||||
dy_unaccel = libinput_event_pointer_get_dy_unaccelerated (pointer_event);
|
||||
|
||||
meta_seat_impl_notify_relative_motion (seat_impl,
|
||||
meta_seat_impl_notify_relative_motion_in_impl (seat_impl,
|
||||
device,
|
||||
time_us,
|
||||
dx, dy,
|
||||
@ -1998,7 +1998,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
y = libinput_event_pointer_get_absolute_y_transformed (motion_event,
|
||||
stage_height);
|
||||
|
||||
meta_seat_impl_notify_absolute_motion (seat_impl,
|
||||
meta_seat_impl_notify_absolute_motion_in_impl (seat_impl,
|
||||
device,
|
||||
time_us,
|
||||
x, y,
|
||||
@ -2036,7 +2036,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
break;
|
||||
}
|
||||
|
||||
meta_seat_impl_notify_button (seat_impl, device,
|
||||
meta_seat_impl_notify_button_in_impl (seat_impl, device,
|
||||
time_us, button, button_state);
|
||||
break;
|
||||
}
|
||||
@ -2101,13 +2101,13 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
|
||||
g_rw_lock_writer_lock (&seat_impl->state_lock);
|
||||
|
||||
touch_state = meta_seat_impl_acquire_touch_state (seat_impl, seat_slot);
|
||||
touch_state = meta_seat_impl_acquire_touch_state_in_impl (seat_impl, seat_slot);
|
||||
touch_state->coords.x = x;
|
||||
touch_state->coords.y = y;
|
||||
|
||||
g_rw_lock_writer_unlock (&seat_impl->state_lock);
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat_impl, device,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat_impl, device,
|
||||
CLUTTER_TOUCH_BEGIN,
|
||||
time_us,
|
||||
touch_state->seat_slot,
|
||||
@ -2129,18 +2129,18 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
|
||||
seat_slot = libinput_event_touch_get_seat_slot (touch_event);
|
||||
time_us = libinput_event_touch_get_time_usec (touch_event);
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat_impl, seat_slot);
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat_impl, seat_slot);
|
||||
if (!touch_state)
|
||||
break;
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat_impl, device,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat_impl, device,
|
||||
CLUTTER_TOUCH_END, time_us,
|
||||
touch_state->seat_slot,
|
||||
touch_state->coords.x,
|
||||
touch_state->coords.y);
|
||||
|
||||
g_rw_lock_writer_lock (&seat_impl->state_lock);
|
||||
meta_seat_impl_release_touch_state (seat_impl, seat_slot);
|
||||
meta_seat_impl_release_touch_state_in_impl (seat_impl, seat_slot);
|
||||
g_rw_lock_writer_unlock (&seat_impl->state_lock);
|
||||
break;
|
||||
}
|
||||
@ -2169,7 +2169,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
stage_height);
|
||||
|
||||
g_rw_lock_writer_lock (&seat_impl->state_lock);
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat_impl, seat_slot);
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat_impl, seat_slot);
|
||||
if (touch_state)
|
||||
{
|
||||
touch_state->coords.x = x;
|
||||
@ -2180,7 +2180,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
if (!touch_state)
|
||||
break;
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat_impl, device,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat_impl, device,
|
||||
CLUTTER_TOUCH_UPDATE,
|
||||
time_us,
|
||||
touch_state->seat_slot,
|
||||
@ -2201,11 +2201,11 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
time_us = libinput_event_touch_get_time_usec (touch_event);
|
||||
|
||||
seat_slot = libinput_event_touch_get_seat_slot (touch_event);
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat_impl, seat_slot);
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat_impl, seat_slot);
|
||||
if (!touch_state)
|
||||
break;
|
||||
|
||||
meta_seat_impl_notify_touch_event (touch_state->seat_impl,
|
||||
meta_seat_impl_notify_touch_event_in_impl (touch_state->seat_impl,
|
||||
CLUTTER_INPUT_DEVICE (device_native),
|
||||
CLUTTER_TOUCH_CANCEL,
|
||||
time_us,
|
||||
@ -2213,7 +2213,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
touch_state->coords.x,
|
||||
touch_state->coords.y);
|
||||
|
||||
meta_seat_impl_release_touch_state (seat_impl, seat_slot);
|
||||
meta_seat_impl_release_touch_state_in_impl (seat_impl, seat_slot);
|
||||
break;
|
||||
}
|
||||
case LIBINPUT_EVENT_GESTURE_PINCH_BEGIN:
|
||||
@ -2345,7 +2345,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
button_state = libinput_event_tablet_tool_get_button_state (tablet_event) ==
|
||||
LIBINPUT_BUTTON_STATE_PRESSED;
|
||||
|
||||
meta_seat_impl_notify_button (seat_impl, device,
|
||||
meta_seat_impl_notify_button_in_impl (seat_impl, device,
|
||||
time_us, tablet_button, button_state);
|
||||
break;
|
||||
}
|
||||
@ -2367,7 +2367,7 @@ process_device_event (MetaSeatImpl *seat_impl,
|
||||
if (button_state)
|
||||
process_tablet_axis (seat_impl, event);
|
||||
|
||||
meta_seat_impl_notify_button (seat_impl, device,
|
||||
meta_seat_impl_notify_button_in_impl (seat_impl, device,
|
||||
time_us, BTN_TOUCH, button_state);
|
||||
if (!button_state)
|
||||
process_tablet_axis (seat_impl, event);
|
||||
@ -2537,11 +2537,11 @@ kbd_a11y_changed_cb (MetaInputSettings *input_settings,
|
||||
MetaInputDeviceNative *keyboard;
|
||||
|
||||
keyboard = META_INPUT_DEVICE_NATIVE (seat_impl->core_keyboard);
|
||||
meta_input_device_native_apply_kbd_a11y_settings (keyboard, a11y_settings);
|
||||
meta_input_device_native_apply_kbd_a11y_settings_in_impl (keyboard, a11y_settings);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_seat_impl_set_keyboard_numlock (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_set_keyboard_numlock_in_impl (MetaSeatImpl *seat_impl,
|
||||
gboolean numlock_state)
|
||||
{
|
||||
xkb_mod_mask_t depressed_mods;
|
||||
@ -2553,7 +2553,7 @@ meta_seat_impl_set_keyboard_numlock (MetaSeatImpl *seat_impl,
|
||||
MetaKeymapNative *keymap;
|
||||
|
||||
keymap = seat_impl->keymap;
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map (keymap);
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map_in_impl (keymap);
|
||||
|
||||
numlock = (1 << xkb_keymap_mod_get_index (xkb_keymap, "Mod2"));
|
||||
|
||||
@ -2578,8 +2578,8 @@ meta_seat_impl_set_keyboard_numlock (MetaSeatImpl *seat_impl,
|
||||
0, 0,
|
||||
group_mods);
|
||||
|
||||
meta_seat_impl_sync_leds (seat_impl);
|
||||
meta_keymap_native_update (seat_impl->keymap);
|
||||
meta_seat_impl_sync_leds_in_impl (seat_impl);
|
||||
meta_keymap_native_update_in_impl (seat_impl->keymap);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
@ -2619,7 +2619,7 @@ input_thread (MetaSeatImpl *seat_impl)
|
||||
|
||||
udev_unref (udev);
|
||||
|
||||
seat_impl->input_settings = meta_input_settings_native_new (seat_impl);
|
||||
seat_impl->input_settings = meta_input_settings_native_new_in_impl (seat_impl);
|
||||
g_signal_connect_object (seat_impl->input_settings, "kbd-a11y-changed",
|
||||
G_CALLBACK (kbd_a11y_changed_cb), seat_impl, 0);
|
||||
|
||||
@ -2628,7 +2628,7 @@ input_thread (MetaSeatImpl *seat_impl)
|
||||
|
||||
seat_impl->keymap = g_object_new (META_TYPE_KEYMAP_NATIVE, NULL);
|
||||
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map (seat_impl->keymap);
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map_in_impl (seat_impl->keymap);
|
||||
|
||||
if (xkb_keymap)
|
||||
{
|
||||
@ -2643,7 +2643,7 @@ input_thread (MetaSeatImpl *seat_impl)
|
||||
}
|
||||
|
||||
if (meta_input_settings_maybe_restore_numlock_state (seat_impl->input_settings))
|
||||
meta_seat_impl_set_keyboard_numlock (seat_impl, TRUE);
|
||||
meta_seat_impl_set_keyboard_numlock_in_impl (seat_impl, TRUE);
|
||||
|
||||
seat_impl->has_touchscreen = has_touchscreen (seat_impl);
|
||||
seat_impl->has_tablet_switch = has_tablet_switch (seat_impl);
|
||||
@ -2702,7 +2702,7 @@ meta_seat_impl_constructed (GObject *object)
|
||||
CLUTTER_INPUT_MODE_LOGICAL);
|
||||
seat_impl->pointer_x = INITIAL_POINTER_X;
|
||||
seat_impl->pointer_y = INITIAL_POINTER_Y;
|
||||
meta_input_device_native_set_coords (META_INPUT_DEVICE_NATIVE (device),
|
||||
meta_input_device_native_set_coords_in_impl (META_INPUT_DEVICE_NATIVE (device),
|
||||
seat_impl->pointer_x,
|
||||
seat_impl->pointer_y);
|
||||
seat_impl->core_pointer = device;
|
||||
@ -2831,7 +2831,7 @@ meta_seat_impl_get_keyboard (MetaSeatImpl *seat_impl)
|
||||
}
|
||||
|
||||
GSList *
|
||||
meta_seat_impl_get_devices (MetaSeatImpl *seat_impl)
|
||||
meta_seat_impl_get_devices_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
return g_slist_copy_deep (seat_impl->devices,
|
||||
(GCopyFunc) g_object_ref,
|
||||
@ -2845,13 +2845,13 @@ meta_seat_impl_get_keymap (MetaSeatImpl *seat_impl)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
warp_pointer (GTask *task)
|
||||
warp_pointer_in_impl (GTask *task)
|
||||
{
|
||||
MetaSeatImpl *seat = g_task_get_source_object (task);
|
||||
graphene_point_t *point;
|
||||
|
||||
point = g_task_get_task_data (task);
|
||||
notify_absolute_motion (seat->core_pointer, 0,
|
||||
notify_absolute_motion_in_impl (seat->core_pointer, 0,
|
||||
point->x, point->y, NULL);
|
||||
g_task_return_boolean (task, TRUE);
|
||||
|
||||
@ -2872,7 +2872,8 @@ meta_seat_impl_warp_pointer (MetaSeatImpl *seat_impl,
|
||||
|
||||
task = g_task_new (seat_impl, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, point, (GDestroyNotify) graphene_point_free);
|
||||
meta_seat_impl_run_input_task (seat_impl, task, (GSourceFunc) warp_pointer);
|
||||
meta_seat_impl_run_input_task (seat_impl, task,
|
||||
(GSourceFunc) warp_pointer_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
@ -2895,7 +2896,7 @@ meta_seat_impl_query_state (MetaSeatImpl *seat_impl,
|
||||
int slot;
|
||||
|
||||
slot = meta_event_native_sequence_get_slot (sequence);
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat_impl, slot);
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat_impl, slot);
|
||||
if (!touch_state)
|
||||
goto out;
|
||||
|
||||
@ -3047,7 +3048,7 @@ meta_seat_impl_set_device_callbacks (MetaOpenDeviceCallback open_callback,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_update_xkb_state (MetaSeatImpl *seat_impl)
|
||||
meta_seat_impl_update_xkb_state_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
xkb_mod_mask_t latched_mods = 0;
|
||||
xkb_mod_mask_t locked_mods = 0;
|
||||
@ -3055,7 +3056,7 @@ meta_seat_impl_update_xkb_state (MetaSeatImpl *seat_impl)
|
||||
|
||||
g_rw_lock_writer_lock (&seat_impl->state_lock);
|
||||
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map (seat_impl->keymap);
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map_in_impl (seat_impl->keymap);
|
||||
|
||||
if (seat_impl->xkb)
|
||||
{
|
||||
@ -3081,8 +3082,8 @@ meta_seat_impl_update_xkb_state (MetaSeatImpl *seat_impl)
|
||||
seat_impl->scroll_lock_led =
|
||||
xkb_keymap_led_get_index (xkb_keymap, XKB_LED_NAME_SCROLL);
|
||||
|
||||
meta_seat_impl_sync_leds (seat_impl);
|
||||
meta_keymap_native_update (seat_impl->keymap);
|
||||
meta_seat_impl_sync_leds_in_impl (seat_impl);
|
||||
meta_keymap_native_update_in_impl (seat_impl->keymap);
|
||||
|
||||
g_rw_lock_writer_unlock (&seat_impl->state_lock);
|
||||
}
|
||||
@ -3142,7 +3143,7 @@ reclaim_devices (GTask *task)
|
||||
if (seat_impl->released)
|
||||
{
|
||||
libinput_resume (seat_impl->libinput);
|
||||
meta_seat_impl_update_xkb_state (seat_impl);
|
||||
meta_seat_impl_update_xkb_state_in_impl (seat_impl);
|
||||
process_events (seat_impl);
|
||||
|
||||
seat_impl->released = FALSE;
|
||||
@ -3189,9 +3190,9 @@ set_keyboard_map (GTask *task)
|
||||
MetaKeymapNative *keymap;
|
||||
|
||||
keymap = seat_impl->keymap;
|
||||
meta_keymap_native_set_keyboard_map (keymap, xkb_keymap);
|
||||
meta_keymap_native_set_keyboard_map_in_impl (keymap, xkb_keymap);
|
||||
|
||||
meta_seat_impl_update_xkb_state (seat_impl);
|
||||
meta_seat_impl_update_xkb_state_in_impl (seat_impl);
|
||||
g_task_return_boolean (task, TRUE);
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
@ -3243,7 +3244,7 @@ set_keyboard_layout_index (GTask *task)
|
||||
locked_mods = xkb_state_serialize_mods (state, XKB_STATE_MODS_LOCKED);
|
||||
|
||||
xkb_state_update_mask (state, depressed_mods, latched_mods, locked_mods, 0, 0, idx);
|
||||
meta_keymap_native_update (seat_impl->keymap);
|
||||
meta_keymap_native_update_in_impl (seat_impl->keymap);
|
||||
|
||||
seat_impl->layout_idx = idx;
|
||||
|
||||
@ -3276,9 +3277,8 @@ meta_seat_impl_set_keyboard_layout_index (MetaSeatImpl *seat_impl,
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* meta_seat_impl_set_keyboard_repeat:
|
||||
* meta_seat_impl_set_keyboard_repeat_in_impl:
|
||||
* @seat: the #ClutterSeat created by the evdev backend
|
||||
* @repeat: whether to enable or disable keyboard repeat events
|
||||
* @delay: the delay in ms between the hardware key press event and
|
||||
@ -3290,7 +3290,7 @@ meta_seat_impl_set_keyboard_layout_index (MetaSeatImpl *seat_impl,
|
||||
* delay and interval period to be specified.
|
||||
*/
|
||||
void
|
||||
meta_seat_impl_set_keyboard_repeat (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_set_keyboard_repeat_in_impl (MetaSeatImpl *seat_impl,
|
||||
gboolean repeat,
|
||||
uint32_t delay,
|
||||
uint32_t interval)
|
||||
@ -3303,7 +3303,7 @@ meta_seat_impl_set_keyboard_repeat (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
struct xkb_state *
|
||||
meta_seat_impl_get_xkb_state (MetaSeatImpl *seat_impl)
|
||||
meta_seat_impl_get_xkb_state_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
return seat_impl->xkb;
|
||||
}
|
||||
@ -3388,7 +3388,7 @@ meta_seat_impl_new (MetaSeatNative *seat_native,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_flags_changed_in_impl (MetaSeatImpl *seat_impl,
|
||||
MetaKeyboardA11yFlags new_flags,
|
||||
MetaKeyboardA11yFlags what_changed)
|
||||
{
|
||||
@ -3408,7 +3408,7 @@ meta_seat_impl_notify_kbd_a11y_flags_changed (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_kbd_a11y_mods_state_changed (MetaSeatImpl *seat_impl,
|
||||
meta_seat_impl_notify_kbd_a11y_mods_state_changed_in_impl (MetaSeatImpl *seat_impl,
|
||||
xkb_mod_mask_t new_latched_mods,
|
||||
xkb_mod_mask_t new_locked_mods)
|
||||
{
|
||||
@ -3424,7 +3424,7 @@ meta_seat_impl_notify_kbd_a11y_mods_state_changed (MetaSeatImpl *seat_impl,
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_bell (MetaSeatImpl *seat_impl)
|
||||
meta_seat_impl_notify_bell_in_impl (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
emit_signal (seat_impl, signals[BELL], NULL, 0);
|
||||
}
|
||||
|
@ -129,14 +129,14 @@ void meta_seat_impl_run_input_task (MetaSeatImpl *seat_impl,
|
||||
GTask *task,
|
||||
GSourceFunc dispatch_func);
|
||||
|
||||
void meta_seat_impl_notify_key (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_key_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *device,
|
||||
uint64_t time_us,
|
||||
uint32_t key,
|
||||
uint32_t state,
|
||||
gboolean update_keys);
|
||||
|
||||
void meta_seat_impl_notify_relative_motion (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float dx,
|
||||
@ -144,20 +144,20 @@ void meta_seat_impl_notify_relative_motion (MetaSeatImpl *seat_impl,
|
||||
float dx_unaccel,
|
||||
float dy_unaccel);
|
||||
|
||||
void meta_seat_impl_notify_absolute_motion (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_absolute_motion_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
float x,
|
||||
float y,
|
||||
double *axes);
|
||||
|
||||
void meta_seat_impl_notify_button (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_button_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
uint32_t button,
|
||||
uint32_t state);
|
||||
|
||||
void meta_seat_impl_notify_scroll_continuous (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_scroll_continuous_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
double dx,
|
||||
@ -165,14 +165,14 @@ void meta_seat_impl_notify_scroll_continuous (MetaSeatImpl *seat_imp
|
||||
ClutterScrollSource source,
|
||||
ClutterScrollFinishFlags flags);
|
||||
|
||||
void meta_seat_impl_notify_discrete_scroll (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_discrete_scroll_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
uint64_t time_us,
|
||||
double discrete_dx,
|
||||
double discrete_dy,
|
||||
ClutterScrollSource source);
|
||||
|
||||
void meta_seat_impl_notify_touch_event (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_touch_event_in_impl (MetaSeatImpl *seat_impl,
|
||||
ClutterInputDevice *input_device,
|
||||
ClutterEventType evtype,
|
||||
uint64_t time_us,
|
||||
@ -180,16 +180,16 @@ void meta_seat_impl_notify_touch_event (MetaSeatImpl *seat_impl,
|
||||
double x,
|
||||
double y);
|
||||
|
||||
void meta_seat_impl_sync_leds (MetaSeatImpl *seat_impl);
|
||||
void meta_seat_impl_sync_leds_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
MetaTouchState * meta_seat_impl_acquire_touch_state (MetaSeatImpl *seat_impl,
|
||||
MetaTouchState * meta_seat_impl_acquire_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot);
|
||||
MetaTouchState * meta_seat_impl_lookup_touch_state (MetaSeatImpl *seat_impl,
|
||||
MetaTouchState * meta_seat_impl_lookup_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot);
|
||||
void meta_seat_impl_release_touch_state (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_release_touch_state_in_impl (MetaSeatImpl *seat_impl,
|
||||
int seat_slot);
|
||||
|
||||
void meta_seat_impl_update_xkb_state (MetaSeatImpl *seat_impl);
|
||||
void meta_seat_impl_update_xkb_state_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
/**
|
||||
* MetaOpenDeviceCallback:
|
||||
@ -214,7 +214,7 @@ void meta_seat_impl_set_device_callbacks (MetaOpenDeviceCallback open_callback
|
||||
void meta_seat_impl_release_devices (MetaSeatImpl *seat_impl);
|
||||
void meta_seat_impl_reclaim_devices (MetaSeatImpl *seat_impl);
|
||||
|
||||
struct xkb_state * meta_seat_impl_get_xkb_state (MetaSeatImpl *seat_impl);
|
||||
struct xkb_state * meta_seat_impl_get_xkb_state_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
void meta_seat_impl_set_keyboard_map (MetaSeatImpl *seat_impl,
|
||||
struct xkb_keymap *keymap);
|
||||
@ -222,7 +222,7 @@ void meta_seat_impl_set_keyboard_map (MetaSeatImpl *seat_im
|
||||
void meta_seat_impl_set_keyboard_layout_index (MetaSeatImpl *seat_impl,
|
||||
xkb_layout_index_t idx);
|
||||
|
||||
void meta_seat_impl_set_keyboard_repeat (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_set_keyboard_repeat_in_impl (MetaSeatImpl *seat_impl,
|
||||
gboolean repeat,
|
||||
uint32_t delay,
|
||||
uint32_t interval);
|
||||
@ -244,17 +244,17 @@ gboolean meta_seat_impl_query_state (MetaSeatImpl *seat_impl,
|
||||
ClutterModifierType *modifiers);
|
||||
ClutterInputDevice * meta_seat_impl_get_pointer (MetaSeatImpl *seat_impl);
|
||||
ClutterInputDevice * meta_seat_impl_get_keyboard (MetaSeatImpl *seat_impl);
|
||||
GSList * meta_seat_impl_get_devices (MetaSeatImpl *seat_impl);
|
||||
GSList * meta_seat_impl_get_devices_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
MetaKeymapNative * meta_seat_impl_get_keymap (MetaSeatImpl *seat_impl);
|
||||
|
||||
void meta_seat_impl_notify_kbd_a11y_flags_changed (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_kbd_a11y_flags_changed_in_impl (MetaSeatImpl *seat_impl,
|
||||
MetaKeyboardA11yFlags new_flags,
|
||||
MetaKeyboardA11yFlags what_changed);
|
||||
void meta_seat_impl_notify_kbd_a11y_mods_state_changed (MetaSeatImpl *seat_impl,
|
||||
void meta_seat_impl_notify_kbd_a11y_mods_state_changed_in_impl (MetaSeatImpl *seat_impl,
|
||||
xkb_mod_mask_t new_latched_mods,
|
||||
xkb_mod_mask_t new_locked_mods);
|
||||
void meta_seat_impl_notify_bell (MetaSeatImpl *seat_impl);
|
||||
void meta_seat_impl_notify_bell_in_impl (MetaSeatImpl *seat_impl);
|
||||
|
||||
MetaInputSettings * meta_seat_impl_get_input_settings (MetaSeatImpl *seat_impl);
|
||||
|
||||
|
@ -109,7 +109,7 @@ typedef enum _EvdevButtonType
|
||||
} EvdevButtonType;
|
||||
|
||||
static int
|
||||
update_button_count (MetaVirtualInputDeviceNative *virtual_evdev,
|
||||
update_button_count_in_impl (MetaVirtualInputDeviceNative *virtual_evdev,
|
||||
uint32_t button,
|
||||
uint32_t state)
|
||||
{
|
||||
@ -156,7 +156,7 @@ get_button_type (uint16_t code)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
release_device (GTask *task)
|
||||
release_device_in_impl (GTask *task)
|
||||
{
|
||||
ImplState *impl_state = g_task_get_task_data (task);
|
||||
MetaInputDeviceNative *device_native;
|
||||
@ -180,7 +180,7 @@ release_device (GTask *task)
|
||||
switch (get_button_type (code))
|
||||
{
|
||||
case EVDEV_BUTTON_TYPE_KEY:
|
||||
meta_seat_impl_notify_key (seat_impl,
|
||||
meta_seat_impl_notify_key_in_impl (seat_impl,
|
||||
impl_state->device,
|
||||
time_us,
|
||||
code,
|
||||
@ -188,7 +188,7 @@ release_device (GTask *task)
|
||||
TRUE);
|
||||
break;
|
||||
case EVDEV_BUTTON_TYPE_BUTTON:
|
||||
meta_seat_impl_notify_button (seat_impl,
|
||||
meta_seat_impl_notify_button_in_impl (seat_impl,
|
||||
impl_state->device,
|
||||
time_us,
|
||||
code,
|
||||
@ -206,7 +206,7 @@ release_device (GTask *task)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_relative_motion (GTask *task)
|
||||
notify_relative_motion_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -216,7 +216,7 @@ notify_relative_motion (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
meta_seat_impl_notify_relative_motion (seat,
|
||||
meta_seat_impl_notify_relative_motion_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
event->x, event->y,
|
||||
@ -246,12 +246,12 @@ meta_virtual_input_device_native_notify_relative_motion (ClutterVirtualInputDevi
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_relative_motion);
|
||||
(GSourceFunc) notify_relative_motion_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_absolute_motion (GTask *task)
|
||||
notify_absolute_motion_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -261,7 +261,7 @@ notify_absolute_motion (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
meta_seat_impl_notify_absolute_motion (seat,
|
||||
meta_seat_impl_notify_absolute_motion_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
event->x, event->y,
|
||||
@ -291,7 +291,7 @@ meta_virtual_input_device_native_notify_absolute_motion (ClutterVirtualInputDevi
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_absolute_motion);
|
||||
(GSourceFunc) notify_absolute_motion_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
@ -316,7 +316,7 @@ translate_to_evdev_button (int clutter_button)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_button (GTask *task)
|
||||
notify_button_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -337,14 +337,14 @@ notify_button (GTask *task)
|
||||
goto out;
|
||||
}
|
||||
|
||||
button_count = update_button_count (virtual_evdev, evdev_button,
|
||||
button_count = update_button_count_in_impl (virtual_evdev, evdev_button,
|
||||
event->button_state);
|
||||
if (button_count < 0 || button_count > 1)
|
||||
{
|
||||
g_warning ("Received multiple virtual 0x%x button %s (ignoring)", evdev_button,
|
||||
event->button_state == CLUTTER_BUTTON_STATE_PRESSED ?
|
||||
"presses" : "releases");
|
||||
update_button_count (virtual_evdev, evdev_button, 1 - event->button_state);
|
||||
update_button_count_in_impl (virtual_evdev, evdev_button, 1 - event->button_state);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -354,7 +354,7 @@ notify_button (GTask *task)
|
||||
"press" : "release",
|
||||
evdev_button, virtual_evdev);
|
||||
|
||||
meta_seat_impl_notify_button (seat,
|
||||
meta_seat_impl_notify_button_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
evdev_button,
|
||||
@ -385,12 +385,12 @@ meta_virtual_input_device_native_notify_button (ClutterVirtualInputDevice *virtu
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_button);
|
||||
(GSourceFunc) notify_button_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_key (GTask *task)
|
||||
notify_key_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -407,13 +407,13 @@ notify_key (GTask *task)
|
||||
goto out;
|
||||
}
|
||||
|
||||
key_count = update_button_count (virtual_evdev, event->key, event->key_state);
|
||||
key_count = update_button_count_in_impl (virtual_evdev, event->key, event->key_state);
|
||||
if (key_count < 0 || key_count > 1)
|
||||
{
|
||||
g_warning ("Received multiple virtual 0x%x key %s (ignoring)", event->key,
|
||||
event->key_state == CLUTTER_KEY_STATE_PRESSED ?
|
||||
"presses" : "releases");
|
||||
update_button_count (virtual_evdev, event->key, 1 - event->key_state);
|
||||
update_button_count_in_impl (virtual_evdev, event->key, 1 - event->key_state);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -422,7 +422,7 @@ notify_key (GTask *task)
|
||||
event->key_state == CLUTTER_KEY_STATE_PRESSED ? "press" : "release",
|
||||
event->key, virtual_evdev);
|
||||
|
||||
meta_seat_impl_notify_key (seat,
|
||||
meta_seat_impl_notify_key_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
event->key,
|
||||
@ -455,12 +455,12 @@ meta_virtual_input_device_native_notify_key (ClutterVirtualInputDevice *virtual_
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_key);
|
||||
(GSourceFunc) notify_key_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
pick_keycode_for_keyval_in_current_group (ClutterVirtualInputDevice *virtual_device,
|
||||
pick_keycode_for_keyval_in_current_group_in_impl (ClutterVirtualInputDevice *virtual_device,
|
||||
guint keyval,
|
||||
guint *keycode_out,
|
||||
guint *level_out)
|
||||
@ -476,8 +476,8 @@ pick_keycode_for_keyval_in_current_group (ClutterVirtualInputDevice *virtual_dev
|
||||
|
||||
backend = clutter_get_default_backend ();
|
||||
keymap = clutter_seat_get_keymap (clutter_backend_get_default_seat (backend));
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map (META_KEYMAP_NATIVE (keymap));
|
||||
state = meta_seat_impl_get_xkb_state (virtual_evdev->seat->impl);
|
||||
xkb_keymap = meta_keymap_native_get_keyboard_map_in_impl (META_KEYMAP_NATIVE (keymap));
|
||||
state = meta_seat_impl_get_xkb_state_in_impl (virtual_evdev->seat->impl);
|
||||
|
||||
layout = xkb_state_serialize_layout (state, XKB_STATE_LAYOUT_EFFECTIVE);
|
||||
min_keycode = xkb_keymap_min_keycode (xkb_keymap);
|
||||
@ -508,7 +508,7 @@ pick_keycode_for_keyval_in_current_group (ClutterVirtualInputDevice *virtual_dev
|
||||
}
|
||||
|
||||
static void
|
||||
apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
|
||||
apply_level_modifiers_in_impl (ClutterVirtualInputDevice *virtual_device,
|
||||
uint64_t time_us,
|
||||
uint32_t level,
|
||||
uint32_t key_state)
|
||||
@ -534,7 +534,7 @@ apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!pick_keycode_for_keyval_in_current_group (virtual_device, keysym,
|
||||
if (!pick_keycode_for_keyval_in_current_group_in_impl (virtual_device, keysym,
|
||||
&keycode, NULL))
|
||||
return;
|
||||
|
||||
@ -545,7 +545,7 @@ apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
|
||||
key_state == CLUTTER_KEY_STATE_PRESSED ? "press" : "release",
|
||||
evcode, virtual_device);
|
||||
|
||||
meta_seat_impl_notify_key (virtual_evdev->seat->impl,
|
||||
meta_seat_impl_notify_key_in_impl (virtual_evdev->seat->impl,
|
||||
virtual_evdev->impl_state->device,
|
||||
time_us,
|
||||
evcode,
|
||||
@ -554,7 +554,7 @@ apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_keyval (GTask *task)
|
||||
notify_keyval_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -568,8 +568,9 @@ notify_keyval (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
if (!pick_keycode_for_keyval_in_current_group (virtual_device,
|
||||
event->key, &keycode, &level))
|
||||
if (!pick_keycode_for_keyval_in_current_group_in_impl (virtual_device,
|
||||
event->key,
|
||||
&keycode, &level))
|
||||
{
|
||||
g_warning ("No keycode found for keyval %x in current group", event->key);
|
||||
goto out;
|
||||
@ -583,13 +584,13 @@ notify_keyval (GTask *task)
|
||||
goto out;
|
||||
}
|
||||
|
||||
key_count = update_button_count (virtual_evdev, evcode, event->key_state);
|
||||
key_count = update_button_count_in_impl (virtual_evdev, evcode, event->key_state);
|
||||
if (key_count < 0 || key_count > 1)
|
||||
{
|
||||
g_warning ("Received multiple virtual 0x%x key %s (ignoring)", evcode,
|
||||
event->key_state == CLUTTER_KEY_STATE_PRESSED ?
|
||||
"presses" : "releases");
|
||||
update_button_count (virtual_evdev, evcode, 1 - event->key_state);
|
||||
update_button_count_in_impl (virtual_evdev, evcode, 1 - event->key_state);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -600,9 +601,12 @@ notify_keyval (GTask *task)
|
||||
evcode, level, key_count, virtual_evdev);
|
||||
|
||||
if (event->key_state)
|
||||
apply_level_modifiers (virtual_device, event->time_us, level, event->key_state);
|
||||
{
|
||||
apply_level_modifiers_in_impl (virtual_device, event->time_us,
|
||||
level, event->key_state);
|
||||
}
|
||||
|
||||
meta_seat_impl_notify_key (seat,
|
||||
meta_seat_impl_notify_key_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
evcode,
|
||||
@ -610,7 +614,10 @@ notify_keyval (GTask *task)
|
||||
TRUE);
|
||||
|
||||
if (!event->key_state)
|
||||
apply_level_modifiers (virtual_device, event->time_us, level, event->key_state);
|
||||
{
|
||||
apply_level_modifiers_in_impl (virtual_device, event->time_us,
|
||||
level, event->key_state);
|
||||
}
|
||||
|
||||
out:
|
||||
g_task_return_boolean (task, TRUE);
|
||||
@ -638,7 +645,7 @@ meta_virtual_input_device_native_notify_keyval (ClutterVirtualInputDevice *virtu
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_keyval);
|
||||
(GSourceFunc) notify_keyval_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
@ -672,7 +679,7 @@ direction_to_discrete (ClutterScrollDirection direction,
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_discrete_scroll (GTask *task)
|
||||
notify_discrete_scroll_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -685,7 +692,7 @@ notify_discrete_scroll (GTask *task)
|
||||
|
||||
direction_to_discrete (event->direction, &discrete_dx, &discrete_dy);
|
||||
|
||||
meta_seat_impl_notify_discrete_scroll (seat,
|
||||
meta_seat_impl_notify_discrete_scroll_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
discrete_dx, discrete_dy,
|
||||
@ -716,12 +723,12 @@ meta_virtual_input_device_native_notify_discrete_scroll (ClutterVirtualInputDevi
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_discrete_scroll);
|
||||
(GSourceFunc) notify_discrete_scroll_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_scroll_continuous (GTask *task)
|
||||
notify_scroll_continuous_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -731,7 +738,7 @@ notify_scroll_continuous (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
meta_seat_impl_notify_scroll_continuous (seat,
|
||||
meta_seat_impl_notify_scroll_continuous_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
event->time_us,
|
||||
event->dx, event->dy,
|
||||
@ -766,12 +773,12 @@ meta_virtual_input_device_native_notify_scroll_continuous (ClutterVirtualInputDe
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_scroll_continuous);
|
||||
(GSourceFunc) notify_scroll_continuous_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_touch_down (GTask *task)
|
||||
notify_touch_down_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -782,7 +789,7 @@ notify_touch_down (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
touch_state = meta_seat_impl_acquire_touch_state (seat,
|
||||
touch_state = meta_seat_impl_acquire_touch_state_in_impl (seat,
|
||||
event->device_slot);
|
||||
if (!touch_state)
|
||||
goto out;
|
||||
@ -790,7 +797,7 @@ notify_touch_down (GTask *task)
|
||||
touch_state->coords.x = event->x;
|
||||
touch_state->coords.y = event->y;
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
CLUTTER_TOUCH_BEGIN,
|
||||
event->time_us,
|
||||
@ -826,12 +833,12 @@ meta_virtual_input_device_native_notify_touch_down (ClutterVirtualInputDevice *v
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_touch_down);
|
||||
(GSourceFunc) notify_touch_down_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_touch_motion (GTask *task)
|
||||
notify_touch_motion_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -842,7 +849,7 @@ notify_touch_motion (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat,
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat,
|
||||
event->device_slot);
|
||||
if (!touch_state)
|
||||
goto out;
|
||||
@ -850,7 +857,7 @@ notify_touch_motion (GTask *task)
|
||||
touch_state->coords.x = event->x;
|
||||
touch_state->coords.y = event->y;
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
CLUTTER_TOUCH_UPDATE,
|
||||
event->time_us,
|
||||
@ -886,12 +893,12 @@ meta_virtual_input_device_native_notify_touch_motion (ClutterVirtualInputDevice
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_touch_motion);
|
||||
(GSourceFunc) notify_touch_motion_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
notify_touch_up (GTask *task)
|
||||
notify_touch_up_in_impl (GTask *task)
|
||||
{
|
||||
MetaVirtualInputDeviceNative *virtual_evdev =
|
||||
g_task_get_source_object (task);
|
||||
@ -902,12 +909,12 @@ notify_touch_up (GTask *task)
|
||||
if (event->time_us == CLUTTER_CURRENT_TIME)
|
||||
event->time_us = g_get_monotonic_time ();
|
||||
|
||||
touch_state = meta_seat_impl_lookup_touch_state (seat,
|
||||
touch_state = meta_seat_impl_lookup_touch_state_in_impl (seat,
|
||||
event->device_slot);
|
||||
if (!touch_state)
|
||||
goto out;
|
||||
|
||||
meta_seat_impl_notify_touch_event (seat,
|
||||
meta_seat_impl_notify_touch_event_in_impl (seat,
|
||||
virtual_evdev->impl_state->device,
|
||||
CLUTTER_TOUCH_END,
|
||||
event->time_us,
|
||||
@ -915,7 +922,7 @@ notify_touch_up (GTask *task)
|
||||
touch_state->coords.x,
|
||||
touch_state->coords.y);
|
||||
|
||||
meta_seat_impl_release_touch_state (virtual_evdev->seat->impl,
|
||||
meta_seat_impl_release_touch_state_in_impl (virtual_evdev->seat->impl,
|
||||
touch_state->seat_slot);
|
||||
|
||||
out:
|
||||
@ -942,7 +949,7 @@ meta_virtual_input_device_native_notify_touch_up (ClutterVirtualInputDevice *vir
|
||||
task = g_task_new (virtual_device, NULL, NULL, NULL);
|
||||
g_task_set_task_data (task, event, g_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) notify_touch_up);
|
||||
(GSourceFunc) notify_touch_up_in_impl);
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
@ -1039,7 +1046,7 @@ meta_virtual_input_device_native_dispose (GObject *object)
|
||||
g_task_set_task_data (task, virtual_evdev->impl_state,
|
||||
(GDestroyNotify) impl_state_free);
|
||||
meta_seat_impl_run_input_task (virtual_evdev->seat->impl, task,
|
||||
(GSourceFunc) release_device);
|
||||
(GSourceFunc) release_device_in_impl);
|
||||
g_object_unref (task);
|
||||
|
||||
virtual_evdev->impl_state = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user