Restore keyboard mapping only if we actually changed it.

This commit is contained in:
Felix Geyer 2015-03-13 19:40:52 +01:00
parent 778f01bcf1
commit 22f579a59e

View File

@ -59,7 +59,9 @@ AutoTypePlatformX11::AutoTypePlatformX11()
void AutoTypePlatformX11::unload()
{
// Restore the KeyboardMapping to its original state.
AddKeysym(NoSymbol);
if (m_currentRemapKeysym != NoSymbol) {
AddKeysym(NoSymbol);
}
if (m_keysymTable) {
XFree(m_keysymTable);