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
9a31b0d7
Commit
9a31b0d7
authored
Apr 12, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Apr 30, 2022
Browse files
x11: trigger shortcuts when releasing rather than pressing
This way we can issue a keyboard grab without problems
parent
1f443301
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/x11/standalone/x11_platform.cpp
View file @
9a31b0d7
...
...
@@ -40,6 +40,7 @@
#include
<KConfigGroup>
#include
<KCrash>
#include
<KGlobalAccel>
#include
<KLocalizedString>
#include
<QOpenGLContext>
...
...
@@ -368,7 +369,10 @@ void X11StandalonePlatform::startInteractivePositionSelection(std::function<void
void
X11StandalonePlatform
::
setupActionForGlobalAccel
(
QAction
*
action
)
{
connect
(
action
,
&
QAction
::
triggered
,
kwinApp
(),
[
action
]
{
connect
(
KGlobalAccel
::
self
(),
&
KGlobalAccel
::
globalShortcutActiveChanged
,
kwinApp
(),
[
action
](
QAction
*
triggeredAction
,
bool
active
)
{
if
(
triggeredAction
!=
action
)
return
;
QVariant
timestamp
=
action
->
property
(
"org.kde.kglobalaccel.activationTimestamp"
);
bool
ok
=
false
;
const
quint32
t
=
timestamp
.
toULongLong
(
&
ok
);
...
...
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