mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-19 19:55:16 -04:00
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
This commit is contained in:
committed by
jp9000
parent
ce46ffa82e
commit
722443b228
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user