diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-12-05 16:39:15 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-12-05 16:39:15 -0600 |
commit | 081bdcc1289455d2d93bd78da66b43114e6a17cd (patch) | |
tree | 7596a6cc34088e2012fed13e638bdf2eb36db47e /registryd | |
parent | 535c0215ae599db4bd24d98f7ceedeb154a68a27 (diff) | |
download | at-spi2-core-081bdcc1289455d2d93bd78da66b43114e6a17cd.tar.gz |
Remove one auxiliary is_consumed
It was used for the return value of spi_controller_notify_mouselisteners.
Diffstat (limited to 'registryd')
-rw-r--r-- | registryd/deviceeventcontroller-x11.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/registryd/deviceeventcontroller-x11.c b/registryd/deviceeventcontroller-x11.c index bbffa7a7..92e456fb 100644 --- a/registryd/deviceeventcontroller-x11.c +++ b/registryd/deviceeventcontroller-x11.c @@ -259,7 +259,6 @@ spi_dec_button_update_and_emit (SpiDEController *controller, guint mask_return) { gchar event_detail[3]; - gboolean is_consumed = FALSE; if ((mask_return & mouse_button_mask) != (mouse_mask_state & mouse_button_mask)) @@ -339,14 +338,8 @@ spi_dec_button_update_and_emit (SpiDEController *controller, #endif snprintf (event_detail, 3, "%d%c", button_number, (is_down) ? 'p' : 'r'); - is_consumed = FALSE; - if (!is_consumed) - { - dbus_uint32_t x = last_mouse_pos->x, y = last_mouse_pos->y; - spi_dec_dbus_emit(controller, SPI_DBUS_INTERFACE_EVENT_MOUSE, "Button", event_detail, x, y); - } - else - spi_dec_set_unlatch_pending (controller, mask_return); + dbus_uint32_t x = last_mouse_pos->x, y = last_mouse_pos->y; + spi_dec_dbus_emit(controller, SPI_DBUS_INTERFACE_EVENT_MOUSE, "Button", event_detail, x, y); } return TRUE; } |