summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdekbdledsync/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tdekbdledsync/main.cpp b/tdekbdledsync/main.cpp
index ccbb66b84..42bb6c9df 100644
--- a/tdekbdledsync/main.cpp
+++ b/tdekbdledsync/main.cpp
@@ -404,14 +404,12 @@ int main() {
if (x11_vt_num == vtstat.v_active) {
// Get Virtual Core keyboard status
- if (XkbGetIndicatorState(display, XkbUseCoreKbd, &states) != Success) {
+ if (XkbGetState(display, XkbUseCoreKbd, &state) != Success) {
fprintf(stderr, "[tdekbdledsync] Unable to query X11 Virtual Core keyboard!\n");
releaseLock(lockfd, lockFileName);
return -7;
}
- XkbGetState(display, XkbUseCoreKbd, &state);
-
caps_lock_set = (state.mods & caps_lock_mask);
num_lock_set = (state.mods & num_lock_mask);
scroll_lock_set = (state.mods & scroll_lock_mask);