diff options
| -rw-r--r-- | src/main/oshelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp index 7037e21e..2f8daf7f 100644 --- a/src/main/oshelper.cpp +++ b/src/main/oshelper.cpp @@ -223,6 +223,7 @@ bool OSHelper::isCapsLock() const unsigned n; XkbGetIndicatorState(d, XkbUseCoreKbd, &n); caps_state = (n & 0x01) == 1; + XCloseDisplay(d); } return caps_state; #elif defined(Q_OS_MAC) |
