Browse Source

Remove unnecessary call to XkbGetIndicatorState

This relates to Bug 2445
(cherry picked from commit a486f914fc)
pull/182/head
Timothy Pearson 7 years ago committed by Slávek Banko
parent
commit
ab88cb07af
  1. 4
      tdekbdledsync/main.cpp

4
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);

Loading…
Cancel
Save