From 8806c976127525ad6b1165ae87bcd2cdb4abec2d Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sun, 7 Feb 2010 11:59:57 +0000 Subject: [PATCH] We need to improve the vte mouse enter handler --- terminatorlib/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 7b43725b..00c46234 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -917,9 +917,10 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) def on_vte_notify_enter(self, term, event): """Handle the mouse entering this terminal""" + # FIXME: This shouldn't be looking up all these values every time sloppy = False if self.config['focus'] == 'system': - sloppy = self.config.get_system_focus() == 'sloppy' + sloppy = self.config.get_system_focus() in ['sloppy', 'mouse'] elif self.config['focus'] in ['sloppy', 'mouse']: sloppy = True if sloppy == True and self.titlebar.editing() == False: