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:
parent
ce46ffa82e
commit
722443b228
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue