diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-07 02:39:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-07 02:39:49 +0000 |
commit | de59f11fd8011f50c728c58e580f9179ff39ff08 (patch) | |
tree | 6f65e5074bcdaa31148a6155389bd80ea017ebdb /0002-vnc-pipewire-stream-Close-session-when-disconnected.patch | |
parent | f346c7556388955b1fb61cd933f725756d2cde48 (diff) |
automatic import of gnome-remote-desktopopeneuler20.03_LTS_SP1
Diffstat (limited to '0002-vnc-pipewire-stream-Close-session-when-disconnected.patch')
-rw-r--r-- | 0002-vnc-pipewire-stream-Close-session-when-disconnected.patch | 28 |
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 + |