┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2019-11-10 14:19:17 +0100
committerDavid Faure <[email protected]>2019-11-10 14:19:17 +0100
commitd8f9ca49d333540796713a8842a1bea7622d0444 (patch)
tree1bc346dae8cc0fc15f1ad404c8ea6d514d48aa36 /src/dolphinmainwindow.cpp
parentfc6ea0e1d90ddba7df97f7b38f000ea795eadbef (diff)
Port away from deprecated API in KWindowSystem >= 5.62
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 17d9901f9..e28b18cd3 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -235,7 +235,8 @@ void DolphinMainWindow::openFiles(const QStringList& files, bool splitView)
void DolphinMainWindow::activateWindow()
{
- KStartupInfo::setNewStartupId(window(), KStartupInfo::startupId());
+ window()->setAttribute(Qt::WA_NativeWindow, true);
+ KStartupInfo::setNewStartupId(window()->windowHandle(), KStartupInfo::startupId());
KWindowSystem::activateWindow(window()->effectiveWinId());
}