From aebd261ded041eab0a397c4a77786b8c1e36dbc7 Mon Sep 17 00:00:00 2001 From: univrsal Date: Tue, 4 Jan 2022 12:18:58 +0100 Subject: [PATCH] UI: Disable WA_PaintOnScreen for projectors Removing this attribute fixes #3582 and allows projector windows to be resized under KDE. --- UI/window-projector.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/window-projector.cpp b/UI/window-projector.cpp index 1f09e0cfd..7eb04e011 100644 --- a/UI/window-projector.cpp +++ b/UI/window-projector.cpp @@ -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(