[at-spi2-core: 30/32] spi_dec_plat_mouse_check(): don't leave moved uninitialized
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 30/32] spi_dec_plat_mouse_check(): don't leave moved uninitialized
- Date: Tue, 14 Dec 2021 22:30:57 +0000 (UTC)
commit a83d169caae718fa697be7a983754c49f52ed72c
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 14 16:10:45 2021 -0600
spi_dec_plat_mouse_check(): don't leave moved uninitialized
registryd/deviceeventcontroller.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index b5390b87..99fb159a 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -140,7 +140,13 @@ spi_dec_plat_mouse_check (SpiDEController *controller,
if (klass->plat.mouse_check)
return klass->plat.mouse_check (controller, x, y, moved);
else
- return 0;
+ {
+ if (moved)
+ {
+ *moved = FALSE;
+ }
+ return 0;
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]