From edc0af36902b11ca043b024ffdfb63e8480afc1e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 16 Sep 2022 16:45:38 -0500 Subject: [PATCH] trying to force second window to use the right screen --- src/qml/presenter/MainWindow.qml | 4 ++++ src/qml/presenter/PresentationWindow.qml | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/qml/presenter/MainWindow.qml b/src/qml/presenter/MainWindow.qml index ea70361..9c4ad37 100644 --- a/src/qml/presenter/MainWindow.qml +++ b/src/qml/presenter/MainWindow.qml @@ -188,7 +188,11 @@ Controls.Page { if (present) { presentation.loadVideo(); + pWindow.screen = presentationScreen; + print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen); pWindow.showFullScreen(); + pWindow.screen = presentationScreen; + print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen); } else pWindow.close(); diff --git a/src/qml/presenter/PresentationWindow.qml b/src/qml/presenter/PresentationWindow.qml index 82d8980..49001fb 100644 --- a/src/qml/presenter/PresentationWindow.qml +++ b/src/qml/presenter/PresentationWindow.qml @@ -15,7 +15,8 @@ Window { screen: presentationScreen opacity: 1.0 transientParent: null - /* flags: Qt.X11BypassWindowManagerHint */ + modality: Qt.NonModal + flags: Qt.FramelessWindowHint onClosing: { presentationSlide.stopVideo(); SlideObject.pause(); @@ -23,9 +24,7 @@ Window { } Component.onCompleted: { - /* presentationWindow.showFullScreen(); */ print(screen.name); - showMinimized(); } Presenter.Slide {