summaryrefslogtreecommitdiff
path: root/registryd/deviceeventcontroller.c
diff options
context:
space:
mode:
Diffstat (limited to 'registryd/deviceeventcontroller.c')
-rw-r--r--registryd/deviceeventcontroller.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index e277412f..06d7c5e5 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1722,16 +1722,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;
}