From 722443b2286eb4613f44ffb56fa93333d4556e81 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 25 Jan 2017 00:45:22 -0200 Subject: [PATCH] UI: Fix linux display/resize bug with preview widget On linux, the main window isn't immediately set to a native widget, so the call: connect(windowHandle(), &QWindow::screenChanged, displayResize); on line 189 will fail, causing the preview widget to not properly resize when the main window is resized. Closes jp9000/obs-studio#776 --- UI/window-basic-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 01453fcad..022e46639 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -123,6 +123,8 @@ OBSBasic::OBSBasic(QWidget *parent) : OBSMainWindow (parent), ui (new Ui::OBSBasic) { + setAttribute(Qt::WA_NativeWindow); + projectorArray.resize(10, ""); previewProjectorArray.resize(10, 0);