(self, term, event)
Handle the mouse entering this terminal
Handle the mouse entering this terminal
Handle the mouse entering this terminal
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() in ['sloppy', 'mouse']
        elif self.config['focus'] in ['sloppy', 'mouse']:
            sloppy = True
        if sloppy and self.titlebar.editing() == False:
            term.grab_focus()
            return False
def on_vte_notify_enter ( self , term , event ) : # 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 ( ) in [ 'sloppy' , 'mouse' ] elif self . config [ 'focus' ] in [ 'sloppy' , 'mouse' ] : sloppy = True if sloppy and self . titlebar . editing ( ) == False : term . grab_focus ( ) return False