Fix silly focus issue when creating groups - terminals were instantly stealing focus and cancelling the group name creation
This commit is contained in:
parent
c257a3abff
commit
8276a6de77
@ -874,8 +874,9 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||
def on_vte_notify_enter(self, term, event):
|
||||
"""Handle the mouse entering this terminal"""
|
||||
if self.config['focus'] in ['sloppy', 'mouse']:
|
||||
term.grab_focus()
|
||||
return(False)
|
||||
if self.titlebar.creating_group() == False:
|
||||
term.grab_focus()
|
||||
return(False)
|
||||
|
||||
def hide_titlebar(self):
|
||||
"""Hide the titlebar"""
|
||||
|
@ -126,6 +126,10 @@ class Titlebar(gtk.EventBox):
|
||||
"""Re-emit an edit-done signal from an EditableLabel"""
|
||||
self.emit('edit-done')
|
||||
|
||||
def creating_group(self):
|
||||
"""Determine if we're currently creating a group"""
|
||||
return(self.groupentry.get_property('visible'))
|
||||
|
||||
def create_group(self):
|
||||
"""Create a new group"""
|
||||
self.groupentry.show()
|
||||
|
Loading…
Reference in New Issue
Block a user