summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-19 23:30:50 (GMT)
committer Timothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-19 23:30:50 (GMT)
commita486f914fca3650fb67948633948310571ab6c85 (patch)
tree84fcd350cb788ed2f0b2ef6d98658da8efb2ad7f
parent5351547aede0aef696099c10305c20d6b5d09ac0 (diff)
downloadtdebase-a486f914.zip
tdebase-a486f914.tar.gz
Remove unnecessary call to XkbGetIndicatorState
This relates to Bug 2445
-rw-r--r--tdekbdledsync/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tdekbdledsync/main.cpp b/tdekbdledsync/main.cpp
index ccbb66b..42bb6c9 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);