diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-06-08 11:14:07 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2017-02-01 15:15:34 +0000 |
commit | 3bb052cc5d96cb51d5a81f6797a18bcf316c0794 (patch) | |
tree | 732af3a6fa07fd50dd69daf9db3c1fdb32ddad36 | |
parent | 02b268644f3d99b0fc897c6f13e6e8d116edff0f (diff) |
Avoid too much #ifdef inside set_keyboard_lock_modifiers functions
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | src/spice-gtk-keyboard.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/spice-gtk-keyboard.c b/src/spice-gtk-keyboard.c index 81498c5..2f10c19 100644 --- a/src/spice-gtk-keyboard.c +++ b/src/spice-gtk-keyboard.c @@ -143,11 +143,9 @@ static void set_keyboard_led(Display *x_display, SpiceLed led, int set) return; } } -#endif void set_keyboard_lock_modifiers(guint32 modifiers) { -#if defined(HAVE_X11_XKBLIB_H) Display *x_display; GdkScreen *screen = gdk_screen_get_default(); @@ -161,7 +159,12 @@ void set_keyboard_lock_modifiers(guint32 modifiers) set_keyboard_led(x_display, CAPS_LOCK_LED, !!(modifiers & SPICE_INPUTS_CAPS_LOCK)); set_keyboard_led(x_display, NUM_LOCK_LED, !!(modifiers & SPICE_INPUTS_NUM_LOCK)); set_keyboard_led(x_display, SCROLL_LOCK_LED, !!(modifiers & SPICE_INPUTS_SCROLL_LOCK)); +} + #else + +void set_keyboard_lock_modifiers(guint32 modifiers) +{ g_warning("set_keyboard_lock_modifiers not implemented"); -#endif } +#endif |