Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | From 08036a4c4491eea57d7b713bb4440f541584204b Mon Sep 17 00:00:00 2001 |
| 2 | From: Mike Gorse <mgorse@suse.com> |
| 3 | Date: Mon, 21 Mar 2022 10:19:03 -0500 |
| 4 | Subject: [PATCH] Fix build with X11 disabled |
| 5 | |
| 6 | Closes #51 |
| 7 | Upstream-Status: Backport |
| 8 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 9 | --- |
| 10 | registryd/deviceeventcontroller.c | 8 ++++---- |
| 11 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 12 | |
| 13 | diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c |
| 14 | index 8a321adc..3068ec4b 100644 |
| 15 | --- a/registryd/deviceeventcontroller.c |
| 16 | +++ b/registryd/deviceeventcontroller.c |
| 17 | @@ -1720,16 +1720,16 @@ spi_dec_synth_keysym (SpiDEController *controller, long keysym) |
| 18 | if (synth_mods != modifiers) { |
| 19 | lock_mods = synth_mods & ~modifiers; |
| 20 | spi_dec_plat_lock_modifiers (controller, lock_mods); |
| 21 | - if (modifiers & LockMask) |
| 22 | - spi_dec_plat_unlock_modifiers (controller, LockMask); |
| 23 | + if (modifiers & SPI_KEYMASK_SHIFTLOCK) |
| 24 | + spi_dec_plat_unlock_modifiers (controller, SPI_KEYMASK_SHIFTLOCK); |
| 25 | } |
| 26 | spi_dec_plat_synth_keycode_press (controller, key_synth_code); |
| 27 | spi_dec_plat_synth_keycode_release (controller, key_synth_code); |
| 28 | |
| 29 | if (synth_mods != modifiers) { |
| 30 | spi_dec_plat_unlock_modifiers (controller, lock_mods); |
| 31 | - if (modifiers & LockMask) |
| 32 | - spi_dec_plat_lock_modifiers (controller, LockMask); |
| 33 | + if (modifiers & SPI_KEYMASK_SHIFTLOCK) |
| 34 | + spi_dec_plat_lock_modifiers (controller, SPI_KEYMASK_SHIFTLOCK); |
| 35 | } |
| 36 | return TRUE; |
| 37 | } |
| 38 | -- |
| 39 | GitLab |
| 40 | |