summaryrefslogtreecommitdiff
path: root/0002-vnc-pipewire-stream-Close-session-when-disconnected.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-06 11:41:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-06 11:41:41 +0000
commit331c53f7f4cdd62df081f8979fc3cfc2052a6e7a (patch)
treedae65f5cd9b9aa6f15dad05e07aed07928813389 /0002-vnc-pipewire-stream-Close-session-when-disconnected.patch
parent2db48c7c4bcd0ad22c831c307dd4fce52a3140ec (diff)
automatic import of gnome-remote-desktopopeneuler20.03
Diffstat (limited to '0002-vnc-pipewire-stream-Close-session-when-disconnected.patch')
-rw-r--r--0002-vnc-pipewire-stream-Close-session-when-disconnected.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/0002-vnc-pipewire-stream-Close-session-when-disconnected.patch b/0002-vnc-pipewire-stream-Close-session-when-disconnected.patch
new file mode 100644
index 0000000..cd1c5e4
--- /dev/null
+++ b/0002-vnc-pipewire-stream-Close-session-when-disconnected.patch
@@ -0,0 +1,28 @@
+From 59188d81cf8936cd9f5400df040d875427251bf2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
+Date: Mon, 1 Oct 2018 18:05:07 +0200
+Subject: [PATCH 2/2] vnc-pipewire-stream: Close session when disconnected
+
+When there is an active stream, and we're disconnected from PipeWire
+(e.g. because it terminated), close the session.
+---
+ src/grd-vnc-pipewire-stream.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/grd-vnc-pipewire-stream.c b/src/grd-vnc-pipewire-stream.c
+index 66d66a0..d6454b8 100644
+--- a/src/grd-vnc-pipewire-stream.c
++++ b/src/grd-vnc-pipewire-stream.c
+@@ -392,6 +392,9 @@ on_state_changed (void *user_data,
+ }
+ break;
+ case PW_REMOTE_STATE_UNCONNECTED:
++ if (stream->pipewire_stream)
++ g_signal_emit (stream, signals[CLOSED], 0);
++ break;
+ case PW_REMOTE_STATE_CONNECTING:
+ break;
+ }
+--
+2.17.1
+