소스 검색

UI: Disable WA_PaintOnScreen for projectors

Removing this attribute fixes #3582 and allows projector windows to be resized
under KDE.
univrsal 3 년 전
부모
커밋
aebd261ded
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      UI/window-projector.cpp

+ 5 - 0
UI/window-projector.cpp

@@ -30,6 +30,11 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
 	if (isAlwaysOnTop)
 	if (isAlwaysOnTop)
 		setWindowFlags(Qt::WindowStaysOnTopHint);
 		setWindowFlags(Qt::WindowStaysOnTopHint);
 
 
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
+	// Prevents resizing of projector windows
+	setAttribute(Qt::WA_PaintOnScreen, false);
+#endif
+
 	type = type_;
 	type = type_;
 #ifdef __APPLE__
 #ifdef __APPLE__
 	setWindowIcon(
 	setWindowIcon(