Revert "Revert "screens overlapping on ubuntu 18 in some cases""

This reverts commit 05372d9c19.
preferencesAboutTextFull
Clément Fauconnier 5 years ago
parent 958f388a1a
commit 1bad7e0f58
  1. 5
      src/core/UBDisplayManager.cpp

@ -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);
}

Loading…
Cancel
Save