Make monitor fullscreen go to correct screen when detached

parent 816bccad
......@@ -665,7 +665,7 @@ void Monitor::slotSwitchFullScreen(bool minimizeOnly)
// Move monitor widget to the second screen (one screen for Kdenlive, the other one for the Monitor widget
//int currentScreen = QApplication::desktop()->screenNumber(this);
for (int i = 0; screen == -1 && i < QApplication::desktop()->screenCount(); i++) {
if (i != QApplication::desktop()->screenNumber(this))
if (i != QApplication::desktop()->screenNumber(this->parentWidget()->parentWidget()))
screen = i;
}
}
......
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