diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index f4996ea..834703d 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -92,10 +92,9 @@ void VideoForm::showToolForm(bool show) { if (!m_toolForm) { m_toolForm = new ToolForm(this, ToolForm::AP_OUTSIDE_RIGHT); - m_toolForm->move(pos().x() + geometry().width(), pos().y() + 30); - connect(m_toolForm, &ToolForm::screenshot, this, &VideoForm::screenshot); } + m_toolForm->move(pos().x() + geometry().width(), pos().y() + 30); m_toolForm->setVisible(show); } @@ -190,7 +189,7 @@ void VideoForm::switchFullScreen() //show(); #endif if (m_skin) { - updateStyleSheet(height() > width()); + updateStyleSheet(m_frameSize.height() > m_frameSize.width()); } showToolForm(true); #ifdef Q_OS_WIN32 diff --git a/QtScrcpy/dialog.cpp b/QtScrcpy/dialog.cpp index f21cd5d..938b6d5 100644 --- a/QtScrcpy/dialog.cpp +++ b/QtScrcpy/dialog.cpp @@ -103,6 +103,11 @@ void Dialog::initUI() // mac need more width setFixedWidth(520); #endif + +#ifdef Q_OS_LINUX + // linux need more width + setFixedWidth(480); +#endif } void Dialog::execAdbCmd()