diff options
author | Timothy Pearson <[email protected]> | 2015-09-19 18:30:50 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2015-09-19 18:30:50 -0500 |
commit | a486f914fca3650fb67948633948310571ab6c85 (patch) | |
tree | 84fcd350cb788ed2f0b2ef6d98658da8efb2ad7f /tdekbdledsync | |
parent | 5351547aede0aef696099c10305c20d6b5d09ac0 (diff) | |
download | tdebase-a486f914fca3650fb67948633948310571ab6c85.tar.gz tdebase-a486f914fca3650fb67948633948310571ab6c85.zip |
Remove unnecessary call to XkbGetIndicatorState
This relates to Bug 2445
Diffstat (limited to 'tdekbdledsync')
-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); |