universedesktop: obs wayland fix

This commit is contained in:
2025-01-26 20:36:57 -05:00
parent 081c2a5f9a
commit 8f2bad1a74
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
diff --git a/UI/window-projector.cpp b/UI/window-projector.cpp
index e61f23182..a405e9f17 100644
--- a/UI/window-projector.cpp
+++ b/UI/window-projector.cpp
@@ -37,11 +37,6 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
// can skip it
windowHandle()->setProperty("isOBSProjectorWindow", true);
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
- // Prevents resizing of projector windows
- setAttribute(Qt::WA_PaintOnScreen, false);
-#endif
-
type = type_;
#ifdef __APPLE__
setWindowIcon(

View File

@@ -18,6 +18,12 @@
(patch' "0005-Avoid-error-on-startup") (patch' "0005-Avoid-error-on-startup")
]; ];
}); });
obs-studio = prev.obs-studio.overrideAttrs (old: {
patches = (old.patches or []) ++ [
./obs-wayland-window-projection.patch
];
});
}) })
]; ];
# Wayland support # Wayland support