Commit 05dcd7bf authored by David Faure's avatar David Faure
Browse files

Port to non-deprecated KWindowSystem::setMainWindow overload

parent 91793221
......@@ -25,6 +25,7 @@
void Utils::setParentWindow(QWidget *w, const QString &parent_window)
{
if (parent_window.startsWith(QLatin1String("x11:"))) {
KWindowSystem::setMainWindow(w, parent_window.midRef(4).toULongLong(nullptr, 16));
w->setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(w->windowHandle(), parent_window.midRef(4).toULongLong(nullptr, 16));
}
}
Markdown is supported
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