Parcourir la source

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.
Ed Maste il y a 5 ans
Parent
commit
7325eace24
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      UI/window-projector.cpp

+ 1 - 1
UI/window-projector.cpp

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