Skip to content

Commit

Permalink
Fix some problems with the Ubuntu window manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ervanalb committed Jul 29, 2019
1 parent be24654 commit 14ef0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions resources/qml/application.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ ApplicationWindow {
id: window;
visible: true
color: RadianceStyle.mainBackgroundColor
width: 800
height: 530
width: 1800
height: 900
visibility: Window.Maximized
title: "Radiance"
property bool hasMidi: false
property string modelName: settings.modelName
Expand Down
4 changes: 3 additions & 1 deletion src/OutputWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ OutputWindow::OutputWindow(QSharedPointer<OutputNode> videoNode)
connect(this, &QWindow::screenChanged, this, &OutputWindow::onScreenChanged);

setFlags(Qt::Dialog);
setWindowState(Qt::WindowFullScreen);
putOnScreen();
connect(this, &QWindow::screenChanged, this, &OutputWindow::putOnScreen);
setScreenName(screen()->name());
Expand All @@ -30,6 +29,7 @@ OutputWindow::OutputWindow(QSharedPointer<OutputNode> videoNode)
}

void OutputWindow::putOnScreen() {
setWindowState(Qt::WindowFullScreen);
setGeometry(screen()->geometry());
}

Expand Down Expand Up @@ -77,6 +77,7 @@ void OutputWindow::reload() {

if (found != m_found) {
m_found = found;
if (m_shown && m_found) putOnScreen();
setVisible(m_shown && m_found);
emit foundChanged(found);
}
Expand All @@ -94,6 +95,7 @@ void OutputWindow::setShown(bool shown) {
if (shown != m_shown) {
m_shown = shown;

if (m_shown && m_found) putOnScreen();
setVisible(m_shown && m_found);

emit shownChanged(shown);
Expand Down

0 comments on commit 14ef0f3

Please sign in to comment.