mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Restore keyboard mapping only if we actually changed it.
This commit is contained in:
@@ -59,7 +59,9 @@ AutoTypePlatformX11::AutoTypePlatformX11()
|
|||||||
void AutoTypePlatformX11::unload()
|
void AutoTypePlatformX11::unload()
|
||||||
{
|
{
|
||||||
// Restore the KeyboardMapping to its original state.
|
// Restore the KeyboardMapping to its original state.
|
||||||
AddKeysym(NoSymbol);
|
if (m_currentRemapKeysym != NoSymbol) {
|
||||||
|
AddKeysym(NoSymbol);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_keysymTable) {
|
if (m_keysymTable) {
|
||||||
XFree(m_keysymTable);
|
XFree(m_keysymTable);
|
||||||
|
|||||||
Reference in New Issue
Block a user