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)
{
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();

View file

@ -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 {