[at-spi2-core/gnome-42] Fix build with X11 disabled
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-42] Fix build with X11 disabled
- Date: Mon, 21 Mar 2022 15:19:32 +0000 (UTC)
commit 47e0d949a707f20aa0e059ede365019b0a470e64
Author: Mike Gorse <mgorse suse com>
Date: Mon Mar 21 10:19:03 2022 -0500
Fix build with X11 disabled
Closes #51
registryd/deviceeventcontroller.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 8a321adc..3068ec4b 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1720,16 +1720,16 @@ spi_dec_synth_keysym (SpiDEController *controller, long keysym)
if (synth_mods != modifiers) {
lock_mods = synth_mods & ~modifiers;
spi_dec_plat_lock_modifiers (controller, lock_mods);
- if (modifiers & LockMask)
- spi_dec_plat_unlock_modifiers (controller, LockMask);
+ if (modifiers & SPI_KEYMASK_SHIFTLOCK)
+ spi_dec_plat_unlock_modifiers (controller, SPI_KEYMASK_SHIFTLOCK);
}
spi_dec_plat_synth_keycode_press (controller, key_synth_code);
spi_dec_plat_synth_keycode_release (controller, key_synth_code);
if (synth_mods != modifiers) {
spi_dec_plat_unlock_modifiers (controller, lock_mods);
- if (modifiers & LockMask)
- spi_dec_plat_lock_modifiers (controller, LockMask);
+ if (modifiers & SPI_KEYMASK_SHIFTLOCK)
+ spi_dec_plat_lock_modifiers (controller, SPI_KEYMASK_SHIFTLOCK);
}
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]