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
Plasma System Monitor
Commits
0ca0b4f6
Commit
0ca0b4f6
authored
May 13, 2022
by
Nicolas Fella
Browse files
Fix activating running instance on Wayland
parent
0c06e25d
Pipeline
#175628
passed with stage
in 1 minute and 19 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
0ca0b4f6
...
...
@@ -18,6 +18,7 @@
#include
<KDBusService>
#include
<KDeclarative/KDeclarative>
#include
<KLocalizedString>
#include
<KWindowSystem>
#include
"Configuration.h"
#include
"ToolsModel.h"
...
...
@@ -148,8 +149,8 @@ int main(int argc, char **argv)
QObject
::
connect
(
&
service
,
&
KDBusService
::
activateRequested
,
&
engine
,
[]()
{
if
(
!
qApp
->
topLevelWindows
().
isEmpty
())
{
QWindow
*
win
=
qApp
->
topLevelWindows
().
first
();
win
->
raise
(
);
win
->
requestActivate
(
);
KWindowSystem
::
updateStartupId
(
win
);
KWindowSystem
::
activateWindow
(
win
);
}
});
// QDBusConnectionInterface::StartService is blocking so we do it manually
...
...
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