From d840b5ea7cdf950627ed764543e1c3f1721740a4 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 5 May 2021 13:36:44 +0200 Subject: [PATCH] Announce which buffer types are available on thumbnails elements --- ...pes-available-on-thumbnails-elements.patch | 30 +++++++++++++++++++ plasma-workspace.spec | 6 +++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 plasma-workspace-announce-buffer-types-available-on-thumbnails-elements.patch diff --git a/plasma-workspace-announce-buffer-types-available-on-thumbnails-elements.patch b/plasma-workspace-announce-buffer-types-available-on-thumbnails-elements.patch new file mode 100644 index 0000000..4911ffa --- /dev/null +++ b/plasma-workspace-announce-buffer-types-available-on-thumbnails-elements.patch @@ -0,0 +1,30 @@ +From 64db2f098f4fd015684605deb4fd8290cce16e29 Mon Sep 17 00:00:00 2001 +From: Aleix Pol +Date: Wed, 5 May 2021 13:20:13 +0200 +Subject: [PATCH] Announce which buffer types are available on thumbnails + elements + +We recently changed it so kwin defaults to memptr because some clients +couldn't deal with dmabuf. We still want dmabuf to be used as it's less +stressful to the system and we support it just fine. +--- + libtaskmanager/declarative/pipewiresourcestream.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/libtaskmanager/declarative/pipewiresourcestream.cpp b/libtaskmanager/declarative/pipewiresourcestream.cpp +index 9acc562b1..0118b1c2b 100644 +--- a/libtaskmanager/declarative/pipewiresourcestream.cpp ++++ b/libtaskmanager/declarative/pipewiresourcestream.cpp +@@ -93,7 +93,9 @@ void PipeWireSourceStream::onStreamParamChanged(void *data, uint32_t id, const s + SPA_PARAM_BUFFERS_stride, + SPA_POD_CHOICE_RANGE_Int(stride, stride, INT32_MAX), + SPA_PARAM_BUFFERS_align, +- SPA_POD_Int(16)); ++ SPA_POD_Int(16), ++ SPA_PARAM_BUFFERS_dataType, ++ SPA_POD_Int((1 << SPA_DATA_MemPtr) | (1 << SPA_DATA_MemFd) | (1 << SPA_DATA_DmaBuf))); + pw_stream_update_params(pw->pwStream, ¶m, 1); + } + +-- +GitLab diff --git a/plasma-workspace.spec b/plasma-workspace.spec index 6734156..8580ab8 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -14,7 +14,7 @@ Name: plasma-workspace Summary: Plasma workspace, applications and applets Version: 5.21.5 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: https://invent.kde.org/plasma/%{name} @@ -66,6 +66,7 @@ Patch105: plasma-workspace-5.7.3-folderview_layout.patch ## upstream Patches ## upstream Patches (master branch) +Patch0: plasma-workspace-announce-buffer-types-available-on-thumbnails-elements.patch # udev BuildRequires: zlib-devel @@ -722,6 +723,9 @@ desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.{klipper, %changelog +* Wed May 05 2021 Jan Grulich - 5.21.5-3 +- Announce which buffer types are available on thumbnails elements + * Wed May 05 2021 Yaroslav Sidlovsky - 5.21.5-2 - xsetroot added as required for plasma-workspace-x11