aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kkbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-kkbd.c')
-rw-r--r--src/mds-kkbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-kkbd.c b/src/mds-kkbd.c
index f5e69db..c6bd282 100644
--- a/src/mds-kkbd.c
+++ b/src/mds-kkbd.c
@@ -180,7 +180,7 @@ static pthread_t kbd_thread;
/**
* Whether `kbd_thread` has started
*/
-static int kbd_thread_started = 0;
+static volatile sig_atomic_t kbd_thread_started = 0;
/**
* Mutex that should be used when sending message
@@ -1784,7 +1784,7 @@ void received_info(int signo)
iprintf("scancode buffer pointer: %i", scancode_ptr);
iprintf("saved keyboard mode: %i", saved_kbd_mode);
iprintf("send buffer size: %zu bytes", send_buffer_size);
- iprintf("keyboard thread started: %s", connected ? "yes" : "no");
+ iprintf("keyboard thread started: %s", kbd_thread_started ? "yes" : "no");
iprintf("keycode remapping tabel size: %zu", mapping_size);
iprint("keycode remapping tabel:");
for (i = 0; i < mapping_size; i++)