mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-08 10:52:04 +02:00
Merge pull request #3326
4f10683
OSHelper: Linux - fix isCapsLock memory leak (xiphon)
This commit is contained in:
commit
059af2bb49
@ -223,6 +223,7 @@ bool OSHelper::isCapsLock() const
|
|||||||
unsigned n;
|
unsigned n;
|
||||||
XkbGetIndicatorState(d, XkbUseCoreKbd, &n);
|
XkbGetIndicatorState(d, XkbUseCoreKbd, &n);
|
||||||
caps_state = (n & 0x01) == 1;
|
caps_state = (n & 0x01) == 1;
|
||||||
|
XCloseDisplay(d);
|
||||||
}
|
}
|
||||||
return caps_state;
|
return caps_state;
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
|
Loading…
Reference in New Issue
Block a user