From 123be552a42a9d8e1ec8e0d6629ee694e0b3a944 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 27 May 2022 13:29:28 +1000 Subject: [PATCH] [client] spice: fix duplicate keybind registration --- client/src/keybind.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/keybind.c b/client/src/keybind.c index a5b233e5..ad7d2ed7 100644 --- a/client/src/keybind.c +++ b/client/src/keybind.c @@ -165,6 +165,14 @@ void keybind_spiceRegister(void) app_registerKeybind(KEY_RIGHTMETA, bind_passthrough, NULL, "Send RWin to the guest"); +#if ENABLE_AUDIO + if (audio_supportsRecord()) + { + app_registerKeybind(KEY_E, audio_recordToggleKeybind, NULL, + "Toggle audio recording"); + } +#endif + firstTime = false; } @@ -175,14 +183,6 @@ void keybind_spiceRegister(void) app_releaseKeybind(&handles[i]); handleCount = 0; -#if ENABLE_AUDIO - if (audio_supportsRecord()) - { - app_registerKeybind(KEY_E, audio_recordToggleKeybind, NULL, - "Toggle audio recording"); - } -#endif - /* register OS based keybinds */ if (app_guestIsLinux()) {