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:
Matt Rose 2024-02-18 10:22:32 -05:00 committed by GitHub
commit 5ef1131791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ class Terminator(Borg):
def get_focussed_terminal(self):
"""iterate over all the terminals to find which, if any, has focus"""
for terminal in self.terminals:
if terminal.has_focus():
if terminal.get_vte().has_focus():
return(terminal)
return(None)