[connections/fix-simultaneous-displays-2: 6/7] vnc-connection: Get Gdk.Display for Clipboard from the main_window




commit 7ec0994d7656fa3d3afe25cf9cabbd6bc9f1f0a5
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Jul 28 11:51:11 2021 +0200

    vnc-connection: Get Gdk.Display for Clipboard from the main_window

 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 08fd539..0548244 100644
--- a/src/vnc-connection.vala
+++ b/src/vnc-connection.vala
@@ -94,7 +94,7 @@ namespace Connections {
             window.add (display);
             display.realize ();
 
-            clipboard = Gtk.Clipboard.get_default(window.get_display ());
+            clipboard = Gtk.Clipboard.get_default (Application.application.main_window.get_display ());
 
             display.vnc_initialized.connect (() => { show (); });
             display.vnc_auth_credential.connect (on_vnc_auth_credential_cb);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]