[Xfce4-commits] [apps/xfce4-terminal] 01/01: Prevent clipboard from being filled with garbage

noreply at xfce.org noreply at xfce.org
Thu Mar 2 11:47:46 CET 2017


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 924c27b55ff101115049e2359fa9ba56fd549cc6
Author: Igor <f2404 at yandex.ru>
Date:   Thu Mar 2 13:46:34 2017 +0300

    Prevent clipboard from being filled with garbage
    
    When "auto copy to clipboard" option is enabled
    Fixes https://bugzilla.xfce.org/show_bug.cgi?id=13403
---
 terminal/terminal-screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 83149c5..b1fee95 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -1240,7 +1240,7 @@ terminal_screen_vte_selection_changed (VteTerminal    *terminal,
   /* copy vte selection to GDK_SELECTION_CLIPBOARD if option is set */
   g_object_get (G_OBJECT (screen->preferences),
                 "misc-copy-on-select", &copy_on_select, NULL);
-  if (copy_on_select)
+  if (copy_on_select && vte_terminal_get_has_selection (terminal))
     vte_terminal_copy_clipboard (terminal);
 
   g_signal_emit (G_OBJECT (screen), screen_signals[SELECTION_CHANGED], 0);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list