From 494a943595049da649e6c546430222d90cdef75b Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Mon, 17 Oct 2022 15:19:43 +0200 Subject: [PATCH] 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. --- src/frontend/qt_sdl/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index db517c0b..9d660d99 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -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()