UI: Fix projector on other than primary display

Calling showFullScreen after setGeometry puts the projector on the
expected monitor.  Previously (on FreeBSD, at least) it opened on the
primary display.
This commit is contained in:
Ed Maste 2020-04-07 20:33:21 -04:00
parent 9fffd99661
commit 7325eace24

View file

@ -166,8 +166,8 @@ void OBSProjector::SetMonitor(int monitor)
{
savedMonitor = monitor;
QScreen *screen = QGuiApplication::screens()[monitor];
showFullScreen();
setGeometry(screen->geometry());
showFullScreen();
SetHideCursor();
}