Commit 8c32edcd authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Implement wl_keyboard.release

The destructor request was added in version 3. Currently, we support v7.
parent 9089fc53
......@@ -23,6 +23,11 @@ KeyboardInterfacePrivate::KeyboardInterfacePrivate(SeatInterface *s)
{
}
void KeyboardInterfacePrivate::keyboard_release(Resource *resource)
{
wl_resource_destroy(resource->handle);
}
void KeyboardInterfacePrivate::keyboard_bind_resource(Resource *resource)
{
const ClientConnection *focusedClient = focusedSurface ? focusedSurface->client() : nullptr;
......
......@@ -63,6 +63,7 @@ public:
QVector<quint32> pressedKeys() const;
protected:
void keyboard_release(Resource *resource) override;
void keyboard_bind_resource(Resource *resource) override;
};
......
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