trying to force second window to use the right screen

This commit is contained in:
Chris Cochrun 2022-09-16 16:45:38 -05:00
parent e05beb3857
commit edc0af3690
2 changed files with 6 additions and 3 deletions

View file

@ -188,7 +188,11 @@ Controls.Page {
if (present) if (present)
{ {
presentation.loadVideo(); presentation.loadVideo();
pWindow.screen = presentationScreen;
print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
pWindow.showFullScreen(); pWindow.showFullScreen();
pWindow.screen = presentationScreen;
print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
} }
else else
pWindow.close(); pWindow.close();

View file

@ -15,7 +15,8 @@ Window {
screen: presentationScreen screen: presentationScreen
opacity: 1.0 opacity: 1.0
transientParent: null transientParent: null
/* flags: Qt.X11BypassWindowManagerHint */ modality: Qt.NonModal
flags: Qt.FramelessWindowHint
onClosing: { onClosing: {
presentationSlide.stopVideo(); presentationSlide.stopVideo();
SlideObject.pause(); SlideObject.pause();
@ -23,9 +24,7 @@ Window {
} }
Component.onCompleted: { Component.onCompleted: {
/* presentationWindow.showFullScreen(); */
print(screen.name); print(screen.name);
showMinimized();
} }
Presenter.Slide { Presenter.Slide {