Commit 5546a71c authored by Aleksei Kanash's avatar Aleksei Kanash

Fixed "multi screen" option.

parent 5d9bf9dc
...@@ -182,7 +182,7 @@ QRect UBDisplayManager::displayGeometry() ...@@ -182,7 +182,7 @@ QRect UBDisplayManager::displayGeometry()
void UBDisplayManager::swapScreens(bool swap) void UBDisplayManager::swapScreens(bool swap)
{ {
Q_UNUSED(swap);
adjustScreens(-1); adjustScreens(-1);
} }
...@@ -201,6 +201,10 @@ void UBDisplayManager::adjustScreens(int screen) ...@@ -201,6 +201,10 @@ void UBDisplayManager::adjustScreens(int screen)
void UBDisplayManager::positionScreens() void UBDisplayManager::positionScreens()
{ {
if(mDesktopWidget && mControlScreenIndex > -1)
{
mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
}
if (mControlWidget && mControlScreenIndex > -1) if (mControlWidget && mControlScreenIndex > -1)
{ {
mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex)); mControlWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
...@@ -212,11 +216,6 @@ void UBDisplayManager::positionScreens() ...@@ -212,11 +216,6 @@ void UBDisplayManager::positionScreens()
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex));
mDisplayWidget->showFullScreen(); mDisplayWidget->showFullScreen();
} }
if(mDesktopWidget && mControlScreenIndex > -1)
{
mDesktopWidget->setGeometry(mDesktop->screenGeometry(mControlScreenIndex));
// mDesktopWidget->showFullScreen();
}
else if(mDisplayWidget) else if(mDisplayWidget)
{ {
mDisplayWidget->hide(); mDisplayWidget->hide();
......
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