From 78e6a5c9ca94f5b4f247671f930082a1928d6692 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 21 Mar 2023 10:34:00 -0500 Subject: [PATCH] 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 --- src/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 12cfe56..52d6c7a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();