aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv_qt.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 88a024d..b531f75 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -714,6 +714,15 @@ jalv_open_ui(Jalv* jalv)
app->connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
win->show();
+ if (jalv->ui_instance && !jalv_ui_is_resizable(jalv)) {
+ widget->setMinimumSize(widget->width(), widget->height());
+ widget->setMaximumSize(widget->width(), widget->height());
+ win->adjustSize();
+ win->setFixedSize(win->width(), win->height());
+ } else {
+ win->resize(widget->width(),
+ widget->height() + win->menuBar()->height());
+ }
Timer* timer = new Timer(jalv);
timer->start(1000 / jalv->ui_update_hz);