Commit 05372d9c authored by Clément Fauconnier's avatar Clément Fauconnier

Revert "screens overlapping on ubuntu 18 in some cases"

This reverts commit 7dc58b7e.
parent 288b21c1
...@@ -222,15 +222,16 @@ void UBDisplayManager::adjustScreens(int screen) ...@@ -222,15 +222,16 @@ void UBDisplayManager::adjustScreens(int screen)
void UBDisplayManager::positionScreens() void UBDisplayManager::positionScreens()
{ {
if(mDesktopWidget && mControlScreenIndex > -1) if(mDesktopWidget && mControlScreenIndex > -1)
{ {
mDesktopWidget->hide(); mDesktopWidget->hide();
mDesktopWidget->setGeometry(mDesktop->availableGeometry(mDesktopWidget)); mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
} }
if (mControlWidget && mControlScreenIndex > -1) if (mControlWidget && mControlScreenIndex > -1)
{ {
mControlWidget->hide(); mControlWidget->hide();
mControlWidget->setGeometry(mDesktop->availableGeometry(mControlWidget)); mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
UBPlatformUtils::showFullScreen(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