Merge pull request #856 from vssdeo/852-terminator_py_get_focussed_terminal_always_returns_none
[bug 852] - 852-terminator_py_get_focussed_terminal_always_returns_none
This commit is contained in:
commit
5ef1131791
|
@ -606,7 +606,7 @@ class Terminator(Borg):
|
||||||
def get_focussed_terminal(self):
|
def get_focussed_terminal(self):
|
||||||
"""iterate over all the terminals to find which, if any, has focus"""
|
"""iterate over all the terminals to find which, if any, has focus"""
|
||||||
for terminal in self.terminals:
|
for terminal in self.terminals:
|
||||||
if terminal.has_focus():
|
if terminal.get_vte().has_focus():
|
||||||
return(terminal)
|
return(terminal)
|
||||||
return(None)
|
return(None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue