UI: Disable WA_PaintOnScreen for projectors

Removing this attribute fixes #3582 and allows projector windows to be resized
under KDE.
This commit is contained in:
univrsal
2022-01-04 12:18:58 +01:00
committed by Jim
parent b684e01aad
commit aebd261ded
+5
View File
@@ -30,6 +30,11 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
if (isAlwaysOnTop)
setWindowFlags(Qt::WindowStaysOnTopHint);
#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
// Prevents resizing of projector windows
setAttribute(Qt::WA_PaintOnScreen, false);
#endif
type = type_;
#ifdef __APPLE__
setWindowIcon(