attempts to decode the windowing system

I want to eventually get a more consistent way for windows to be
handled on wayland. But I can't figure out how to make it work on all compositors
This commit is contained in:
Chris Cochrun 2023-03-21 10:34:00 -05:00
parent 554dbc7d29
commit 78e6a5c9ca

View file

@ -213,15 +213,15 @@ int main(int argc, char *argv[])
return -1;
}
// QWindow *window = windowFromEngine(&engine);
QWindow *window = windowFromEngine(&engine);
// window->setIcon(QIcon::fromTheme(QStringLiteral("system-config-display")));
// KWindowSystem::setMainWindow(&window);
window->setIcon(QIcon::fromTheme(QStringLiteral("system-config-display")));
// KWindowSystem::setMainWindow(window);
// KWindowSystem::activateWindow(window);
// qDebug() << "00000000000000000000000000000000";
// qDebug() << KWindowSystem::isPlatformWayland();
// qDebug() << KWindowSystem::windows();
// qDebug() << "00000000000000000000000000000000";
qDebug() << "00000000000000000000000000000000";
qDebug() << KWindowSystem::isPlatformWayland();
qDebug() << KWindowSystem::windows();
qDebug() << "00000000000000000000000000000000";
return app.exec();