[connections/fixes-from-gnome-41: 1/4] vnc-connection: Do not tap to clipboard until connected
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/fixes-from-gnome-41: 1/4] vnc-connection: Do not tap to clipboard until connected
- Date: Mon, 4 Oct 2021 09:20:09 +0000 (UTC)
commit 01191d2ca4f8118917932cc74cf971bb142b3a0c
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Oct 1 11:02:55 2021 +0200
vnc-connection: Do not tap to clipboard until connected
There's no need to subscribe to the clipboard until a connection
is established.
src/vnc-connection.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vnc-connection.vala b/src/vnc-connection.vala
index ae92ed1..4ae8452 100644
--- a/src/vnc-connection.vala
+++ b/src/vnc-connection.vala
@@ -234,7 +234,7 @@ namespace Connections {
}
private void on_owner_change_cb () {
- if (view_only)
+ if (!connected || view_only)
return;
string message = clipboard.wait_for_text ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]