mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-16 08:54:30 -05:00
Restore keyboard mapping only if we actually changed it.
This commit is contained in:
parent
778f01bcf1
commit
22f579a59e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue