From 9e13bb6aae610a3b064acf37e9bd56d8b76642ec Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 23 Feb 2011 21:59:12 +0100 Subject: [PATCH] Only perform emits if active window. Closes LP #690947 --- terminatorlib/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 3d5869c2..8514ac73 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -747,7 +747,9 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) # maybe we can emit the key event and let Terminator() care? groupsend = self.terminator.groupsend groupsend_type = self.terminator.groupsend_type - if groupsend != groupsend_type['off'] and self.vte.is_focus(): + if groupsend != groupsend_type['off'] \ + and self.vte.is_focus() \ + and self.get_toplevel().is_active(): if self.group and groupsend == groupsend_type['group']: self.terminator.group_emit(self, self.group, 'key-press-event', event)