[bug 852] - 852-terminator_py_get_focussed_terminal_always_returns_none

- added get_vte().has_focus() for a valid focussed terminal to return
This commit is contained in:
Vishweshwar Saran Singh Deo 2023-10-26 23:38:59 +05:30
parent 6d225c7aee
commit 03e5769bd1
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,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)