🎉 FINALLY! Extra window in any wayland compositor

This required switching from a QML Window to a QQuickView in C++. I
want to try to eventually subclass that in Rust, but for now it works.

I'll have to still tinker with this to find out how to specifically
set the screen in certain environments, but for now the user will need
to move the window on their own.
This commit is contained in:
Chris Cochrun 2023-05-19 13:01:15 -05:00
parent bbc5bf3d7c
commit b74e85bfe6
5 changed files with 98 additions and 42 deletions

View file

@ -128,9 +128,14 @@ Controls.Page {
}
}
Presenter.PresentationWindow {
id: pWindow
}
/* Loader { */
/* id: presWinLoader */
/* active: false */
/* sourceComponent: Presenter.PresentationWindow {} */
/* } */
/* Presenter.PresentationWindow { */
/* id: pWindow */
/* } */
SongProxyModel { id: songProxyModel }
ImageProxyModel { id: imageProxyModel }
@ -272,16 +277,20 @@ Controls.Page {
function present(present) {
if (present)
{
/* presentation.loadVideo(); */
console.log("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
pWindow.showFullScreen();
/* pWindow.screen = presentationScreen; */
console.log("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
PresWindow.showFullScreen();
PresWindow.setSource("qrc:qml/presenter/PresentationWindow.qml")
console.log(PresWindow);
/* presWinLoader.active = true; */
}
else {
PresWindow.close();
/* presWinLoader.active = false; */
}
else
pWindow.close();
}
function closeAll() { PresWindow.close() }
function changeVidPos(pos) {
presentation.slide.seek(pos);
pWindow.slide.seek(pos);