We need to improve the vte mouse enter handler

This commit is contained in:
Chris Jones 2010-02-07 11:59:57 +00:00
parent 00490e40b2
commit 8806c97612
1 changed files with 2 additions and 1 deletions

View File

@ -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: