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,6 +874,7 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
def on_vte_notify_enter(self, term, event):
|
def on_vte_notify_enter(self, term, event):
|
||||||
"""Handle the mouse entering this terminal"""
|
"""Handle the mouse entering this terminal"""
|
||||||
if self.config['focus'] in ['sloppy', 'mouse']:
|
if self.config['focus'] in ['sloppy', 'mouse']:
|
||||||
|
if self.titlebar.creating_group() == False:
|
||||||
term.grab_focus()
|
term.grab_focus()
|
||||||
return(False)
|
return(False)
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,10 @@ class Titlebar(gtk.EventBox):
|
||||||
"""Re-emit an edit-done signal from an EditableLabel"""
|
"""Re-emit an edit-done signal from an EditableLabel"""
|
||||||
self.emit('edit-done')
|
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):
|
def create_group(self):
|
||||||
"""Create a new group"""
|
"""Create a new group"""
|
||||||
self.groupentry.show()
|
self.groupentry.show()
|
||||||
|
|
Loading…
Reference in New Issue