Browse Source

fix(capslock_x11): properly release the X display handle

This fixes caps lock detection after a while, and removes the "Maximum
number of clients reached" message on stdout.
pull/3383/head
Colomban Wendling 9 years ago
parent
commit
f9190734d7
  1. 1
      src/platform/capslock_x11.cpp

1
src/platform/capslock_x11.cpp

@ -35,6 +35,7 @@ bool Platform::capsLockEnabled() @@ -35,6 +35,7 @@ bool Platform::capsLockEnabled()
unsigned n;
XkbGetIndicatorState(d, XkbUseCoreKbd, &n);
caps_state = (n & 0x01) == 1;
XCloseDisplay(d);
}
return caps_state;
}

Loading…
Cancel
Save