Commit 2acb99e9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Explicitly send keyboard modifiers

This improves the readability of the setFocusedSurface() method in the
KeyboardInterface class. Currently, it's easy to overlook that the
sendEnter() function also sends modifiers.
parent 69869e75
......@@ -71,8 +71,6 @@ void KeyboardInterfacePrivate::sendEnter(SurfaceInterface *surface, quint32 seri
for (Resource *keyboardResource : keyboards) {
send_enter(keyboardResource->handle, serial, surface->resource(), data);
void KeyboardInterface::setKeymap(const QByteArray &content)
......@@ -167,6 +165,7 @@ void KeyboardInterface::setFocusedSurface(SurfaceInterface *surface, quint32 ser
d->sendEnter(d->focusedSurface, serial);
QVector<quint32> KeyboardInterfacePrivate::pressedKeys() const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment