gentoo-ebuilds/media-video/kaffeine/files/kaffeine-2.1.0_pre20241125-force-xcb-platform.patch
Andreas Sturmlechner cbd687fcdb
media-video/kaffeine: Force QT_QPA_PLATFORM=xcb to fix video glitches
... in Wayland sessions.

See also:
https://invent.kde.org/multimedia/kaffeine/-/merge_requests/14

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-04-01 23:21:29 +02:00

30 lines
728 B
Diff

From 79ded89ab9e477ce93e71d6184104ff273553ae9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Tue, 25 Feb 2025 13:39:06 +0100
Subject: [PATCH] Force X11
VLC does not support video playback on Wayland.
BUG: 397594
---
src/main.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main.cpp b/src/main.cpp
index a7e0efa6..185a6b72 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -211,6 +211,10 @@ int main(int argc, char *argv[])
{
qInstallMessageHandler(verboseMessageHandler);
+#if LIBVLC_VERSION_MAJOR <= 3
+ qputenv("QT_QPA_PLATFORM", "xcb");
+#endif
+
KLocalizedString::setApplicationDomain("kaffeine");
KaffeineApplication app(argc, argv);
--
GitLab