summaryrefslogtreecommitdiff
path: root/registryd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-05 16:38:27 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-05 16:38:27 -0600
commit535c0215ae599db4bd24d98f7ceedeb154a68a27 (patch)
treef3a4ccf55700b28b15645c92fb14aeca87d53fab /registryd
parent81ad3cbdd1d793d079ca4613c6a26fb9d8bd693d (diff)
downloadat-spi2-core-535c0215ae599db4bd24d98f7ceedeb154a68a27.tar.gz
Remove another auxiliary variable that was used to call spi_controller_notify_mouselisteners
Diffstat (limited to 'registryd')
-rw-r--r--registryd/deviceeventcontroller-x11.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/registryd/deviceeventcontroller-x11.c b/registryd/deviceeventcontroller-x11.c
index 5313f7c7..bbffa7a7 100644
--- a/registryd/deviceeventcontroller-x11.c
+++ b/registryd/deviceeventcontroller-x11.c
@@ -456,7 +456,6 @@ static void
spi_device_event_controller_forward_mouse_event (SpiDEController *controller,
XEvent *xevent)
{
- Accessibility_DeviceEvent mouse_e;
gchar event_detail[3];
gboolean is_consumed = FALSE;
gboolean xkb_mod_unlatch_occurred;
@@ -498,16 +497,6 @@ spi_device_event_controller_forward_mouse_event (SpiDEController *controller,
snprintf (event_detail, 3, "%d%c", button,
(xevent->type == ButtonPress) ? 'p' : 'r');
- /* TODO: FIXME distinguish between physical and logical buttons */
- mouse_e.type = (xevent->type == ButtonPress) ?
- Accessibility_BUTTON_PRESSED_EVENT :
- Accessibility_BUTTON_RELEASED_EVENT;
- mouse_e.id = button;
- mouse_e.hw_code = button;
- mouse_e.modifiers = (dbus_uint16_t) xbutton_event->state;
- mouse_e.timestamp = (dbus_uint32_t) xbutton_event->time;
- mouse_e.event_string = "";
- mouse_e.is_text = FALSE;
if ((mouse_button_state & mouse_button_mask) !=
(mouse_mask_state & mouse_button_mask))
{