summaryrefslogtreecommitdiffstats
path: root/source/kde/kde
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/kde')
-rw-r--r--source/kde/kde/build/kwin2
-rw-r--r--source/kde/kde/build/okteta2
-rw-r--r--source/kde/kde/patch/kwin.patch2
-rw-r--r--source/kde/kde/patch/kwin/kwin.wayland.stream.diff12
4 files changed, 16 insertions, 2 deletions
diff --git a/source/kde/kde/build/kwin b/source/kde/kde/build/kwin
index d00491fd7..0cfbf0888 100644
--- a/source/kde/kde/build/kwin
+++ b/source/kde/kde/build/kwin
@@ -1 +1 @@
-1
+2
diff --git a/source/kde/kde/build/okteta b/source/kde/kde/build/okteta
index 0cfbf0888..d00491fd7 100644
--- a/source/kde/kde/build/okteta
+++ b/source/kde/kde/build/okteta
@@ -1 +1 @@
-2
+1
diff --git a/source/kde/kde/patch/kwin.patch b/source/kde/kde/patch/kwin.patch
new file mode 100644
index 000000000..c2063e72e
--- /dev/null
+++ b/source/kde/kde/patch/kwin.patch
@@ -0,0 +1,2 @@
+# delay deletion of wayland streams:
+cat $CWD/patch/kwin/kwin.wayland.stream.diff | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
diff --git a/source/kde/kde/patch/kwin/kwin.wayland.stream.diff b/source/kde/kde/patch/kwin/kwin.wayland.stream.diff
new file mode 100644
index 000000000..e5c368823
--- /dev/null
+++ b/source/kde/kde/patch/kwin/kwin.wayland.stream.diff
@@ -0,0 +1,12 @@
+diff -urN kwin-5.21.4.orig/plugins/screencast/screencastmanager.cpp kwin-5.21.4/plugins/screencast/screencastmanager.cpp
+--- kwin-5.21.4.orig/plugins/screencast/screencastmanager.cpp 2021-04-06 15:27:01.000000000 +0300
++++ kwin-5.21.4/plugins/screencast/screencastmanager.cpp 2021-04-19 10:58:00.395022083 +0300
+@@ -131,7 +131,7 @@
+ connect(waylandStream, &KWaylandServer::ScreencastStreamV1Interface::finished, stream, &PipeWireStream::stop);
+ connect(stream, &PipeWireStream::stopStreaming, waylandStream, [stream, waylandStream] {
+ waylandStream->sendClosed();
+- delete stream;
++ stream->deleteLater();
+ });
+ connect(stream, &PipeWireStream::streamReady, stream, [waylandStream] (uint nodeid) {
+ waylandStream->sendCreated(nodeid);