From c00422c74a44ad756c985caf3a806a2242c30e06 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Sun, 10 May 2020 10:20:42 +0200 Subject: [PATCH] Add Debug message for screen geometries [ci skip] --- linphone-app/src/components/notifier/Notifier.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linphone-app/src/components/notifier/Notifier.cpp b/linphone-app/src/components/notifier/Notifier.cpp index 22dbbc450..9a681f1f2 100644 --- a/linphone-app/src/components/notifier/Notifier.cpp +++ b/linphone-app/src/components/notifier/Notifier.cpp @@ -131,9 +131,11 @@ QObject *Notifier::createNotification (Notifier::NotificationType type, QVariant QQuickItem * previousWrapper = nullptr; ++mInstancesNumber; + QScreen * primaryScreen = QGuiApplication::primaryScreen(); + qInfo() << "Primary screen : " << primaryScreen->geometry() << primaryScreen->availableGeometry() << primaryScreen->virtualGeometry() << primaryScreen->availableVirtualGeometry(); for(int i = 0 ; i < allScreens.size() ; ++i){ QQuickView *view = new QQuickView(App::getInstance()->getEngine(), nullptr); // Use QQuickView to create a visual root object that is independant from current application Window - QScreen *screen = allScreens[i]; + QScreen *screen = allScreens[i]; view->setScreen(screen); // Bind the visual root object to the screen view->setProperty("flags", QVariant(Qt::BypassWindowManagerHint | Qt::WindowStaysOnBottomHint | Qt::CustomizeWindowHint | Qt::X11BypassWindowManagerHint)); // Set the visual ghost window @@ -166,6 +168,7 @@ QObject *Notifier::createNotification (Notifier::NotificationType type, QVariant QObject::connect(wrapperItem, &QObject::destroyed, previousWrapper, &QObject::deleteLater); } previousWrapper = wrapperItem; // The last one is used as a point of start when deleting and openning + qInfo() << "Screen ["<geometry() << screen->availableGeometry() << screen->virtualGeometry() << screen->availableVirtualGeometry() << "Choose:"<geometry(); view->show(); } qInfo() << QStringLiteral("Create notifications:") << wrapperItem;