[connections/gnome-41] vnc-connection: Do not tap to clipboard until connected
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gnome-41] vnc-connection: Do not tap to clipboard until connected
- Date: Fri, 1 Oct 2021 09:30:41 +0000 (UTC)
commit a5440eb7460ec42b061c78e47fc9643101fe3f9b
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]