diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-19 18:30:50 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-09-20 02:21:38 +0200 |
commit | ab88cb07af8f361b41887e964c9ebb2fe9de9a96 (patch) | |
tree | 892ff1dc2cdda86d39c55279df1d61cb1b58d032 | |
parent | 5aa7540fa585aa9591f7247eccbeb6c8db9b0310 (diff) | |
download | tdebase-ab88cb07af8f361b41887e964c9ebb2fe9de9a96.tar.gz tdebase-ab88cb07af8f361b41887e964c9ebb2fe9de9a96.zip |
Remove unnecessary call to XkbGetIndicatorState
This relates to Bug 2445
(cherry picked from commit a486f914fca3650fb67948633948310571ab6c85)
-rw-r--r-- | tdekbdledsync/main.cpp | 4 |
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); |