Commit 7dc58b7e authored by Clément Fauconnier's avatar Clément Fauconnier

screens overlapping on ubuntu 18 in some cases

parent 625a1f9d
......@@ -222,16 +222,15 @@ void UBDisplayManager::adjustScreens(int screen)
void UBDisplayManager::positionScreens()
{
if(mDesktopWidget && mControlScreenIndex > -1)
{
mDesktopWidget->hide();
mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
mDesktopWidget->setGeometry(mDesktop->availableGeometry(mDesktopWidget));
}
if (mControlWidget && mControlScreenIndex > -1)
{
mControlWidget->hide();
mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
mControlWidget->setGeometry(mDesktop->availableGeometry(mControlWidget));
UBPlatformUtils::showFullScreen(mControlWidget);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment