summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/qwlkeyboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/wayland_wrapper/qwlkeyboard.cpp')
-rw-r--r--src/compositor/wayland_wrapper/qwlkeyboard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/qwlkeyboard.cpp b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
index 060965663..3d0af6aaf 100644
--- a/src/compositor/wayland_wrapper/qwlkeyboard.cpp
+++ b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
@@ -146,14 +146,13 @@ void Keyboard::setFocus(Surface* surface)
void Keyboard::setKeymap(const QWaylandKeymap &keymap)
{
m_keymap = keymap;
+ m_pendingKeymap = true;
// If there is no key currently pressed, update right away the keymap
// Otherwise, delay the update when keys are released
// see http://lists.freedesktop.org/archives/wayland-devel/2013-October/011395.html
if (m_keys.isEmpty()) {
updateKeymap();
- } else {
- m_pendingKeymap = true;
}
}