Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
8c32edcd
Commit
8c32edcd
authored
Mar 15, 2021
by
Vlad Zahorodnii
Browse files
Implement wl_keyboard.release
The destructor request was added in version 3. Currently, we support v7.
parent
9089fc53
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/keyboard_interface.cpp
View file @
8c32edcd
...
...
@@ -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
;
...
...
src/wayland/keyboard_interface_p.h
View file @
8c32edcd
...
...
@@ -63,6 +63,7 @@ public:
QVector
<
quint32
>
pressedKeys
()
const
;
protected:
void
keyboard_release
(
Resource
*
resource
)
override
;
void
keyboard_bind_resource
(
Resource
*
resource
)
override
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment