summaryrefslogtreecommitdiff
path: root/registryd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-05 16:37:19 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-05 16:37:19 -0600
commit81ad3cbdd1d793d079ca4613c6a26fb9d8bd693d (patch)
tree825177406bb946df3f0a0be271ef685280a81f01 /registryd
parente6e91a6eada3024db8eec1e11cdde91f8b41c819 (diff)
downloadat-spi2-core-81ad3cbdd1d793d079ca4613c6a26fb9d8bd693d.tar.gz
Remove one auxiliary variable that was used to call spi_controller_notify_mouselisteners
Diffstat (limited to 'registryd')
-rw-r--r--registryd/deviceeventcontroller-x11.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/registryd/deviceeventcontroller-x11.c b/registryd/deviceeventcontroller-x11.c
index b553b3d7..5313f7c7 100644
--- a/registryd/deviceeventcontroller-x11.c
+++ b/registryd/deviceeventcontroller-x11.c
@@ -258,7 +258,6 @@ static gboolean
spi_dec_button_update_and_emit (SpiDEController *controller,
guint mask_return)
{
- Accessibility_DeviceEvent mouse_e;
gchar event_detail[3];
gboolean is_consumed = FALSE;
@@ -340,18 +339,6 @@ spi_dec_button_update_and_emit (SpiDEController *controller,
#endif
snprintf (event_detail, 3, "%d%c", button_number,
(is_down) ? 'p' : 'r');
- /* TODO: FIXME distinguish between physical and
- * logical buttons
- */
- mouse_e.type = (is_down) ?
- Accessibility_BUTTON_PRESSED_EVENT :
- Accessibility_BUTTON_RELEASED_EVENT;
- mouse_e.id = button_number;
- mouse_e.hw_code = button_number;
- mouse_e.modifiers = (dbus_uint16_t) mouse_mask_state;
- mouse_e.timestamp = 0;
- mouse_e.event_string = "";
- mouse_e.is_text = FALSE;
is_consumed = FALSE;
if (!is_consumed)
{