mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Merge pull request #3326
4f10683
OSHelper: Linux - fix isCapsLock memory leak (xiphon)
This commit is contained in:
commit
059af2bb49
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue