Set ScreenPanelGL's minimum size immediately

Fixes GL context creation for OpenGL display on macOS using the wrong
size as the underlying window was not resized to the correct size by Qt
yet.
This commit is contained in:
Nadia Holmquist Pedersen 2022-10-17 15:19:43 +02:00
parent 2f4bd45e5e
commit 494a943595
1 changed files with 1 additions and 0 deletions

View File

@ -1254,6 +1254,7 @@ ScreenPanelGL::ScreenPanelGL(QWidget* parent) : QWidget(parent), ScreenHandler(t
setAttribute(Qt::WA_PaintOnScreen, true);
setAttribute(Qt::WA_KeyCompression, false);
setFocusPolicy(Qt::StrongFocus);
setMinimumSize(screenGetMinSize());
}
ScreenPanelGL::~ScreenPanelGL()