mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
fix: fullscreen bug on ubuntu
This commit is contained in:
parent
7b1822bcec
commit
4cac0472d8
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue