Commit ed2f018a authored by David Faure's avatar David Faure

Port away from deprecated API in KWindowSystem

parent d58eb7a5
......@@ -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