summaryrefslogtreecommitdiff
path: root/registryd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-05 16:40:40 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-05 16:40:40 -0600
commitcaf63dce8ddc02da416236360f3bcffc5b25b0f7 (patch)
tree29c3dcdb427a3d2bff19c6fc4cdc98111fa78935 /registryd
parent081bdcc1289455d2d93bd78da66b43114e6a17cd (diff)
downloadat-spi2-core-caf63dce8ddc02da416236360f3bcffc5b25b0f7.tar.gz
Remove the other is_consumed
And simplify the call to XAllowEvents() since now there is only one case.
Diffstat (limited to 'registryd')
-rw-r--r--registryd/deviceeventcontroller-x11.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/registryd/deviceeventcontroller-x11.c b/registryd/deviceeventcontroller-x11.c
index 92e456fb..03c4afe4 100644
--- a/registryd/deviceeventcontroller-x11.c
+++ b/registryd/deviceeventcontroller-x11.c
@@ -450,7 +450,6 @@ spi_device_event_controller_forward_mouse_event (SpiDEController *controller,
XEvent *xevent)
{
gchar event_detail[3];
- gboolean is_consumed = FALSE;
gboolean xkb_mod_unlatch_occurred;
XButtonEvent *xbutton_event = (XButtonEvent *) xevent;
dbus_uint32_t ix, iy;
@@ -506,14 +505,8 @@ spi_device_event_controller_forward_mouse_event (SpiDEController *controller,
xkb_mod_unlatch_occurred = (xevent->type == ButtonPress ||
xevent->type == ButtonRelease);
- /* if client wants to consume this event, and XKB latch state was
- * unset by this button event, we reset it
- */
- if (is_consumed && xkb_mod_unlatch_occurred)
- spi_dec_set_unlatch_pending (controller, mouse_mask_state);
-
XAllowEvents (spi_get_display (),
- (is_consumed) ? SyncPointer : ReplayPointer,
+ ReplayPointer,
CurrentTime);
}