From 2228e2c3f32354d3149f5eab56f63150ceb02a2b Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 26 Dec 2008 15:43:02 +0000 Subject: [PATCH] Fix bug reported by Kees Cook - when in grouped mode, pasting did not apply to all grouped terms --- terminatorlib/terminatorterm.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 5f328f65..4ddf1d27 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -667,6 +667,9 @@ text/plain # Left mouse button should transfer focus to this vte widget # we also need to give focus on the widget where the paste occured if event.button in (1 ,2): + if event.button == 2 and self._group: + self.paste_clipboard (True) + return True self._vte.grab_focus () return False @@ -696,8 +699,19 @@ text/plain else: widget.show () - def paste_clipboard(self): - self._vte.paste_clipboard() + def paste_clipboard(self, primary = False): + if self._group: + for term in self.terminator.term_list: + if term._group == self._group: + if primary: + term._vte.paste_primary () + else: + term._vte.paste_clipboard () + else: + if primary: + self._vte.paste_primary () + else: + self._vte.paste_clipboard () self._vte.grab_focus() #keybindings for the individual splited terminals (affects only the