From 03e5769bd175447aa586735bc5d7ad5094216eae Mon Sep 17 00:00:00 2001 From: Vishweshwar Saran Singh Deo Date: Thu, 26 Oct 2023 23:38:59 +0530 Subject: [PATCH] [bug 852] - 852-terminator_py_get_focussed_terminal_always_returns_none - added get_vte().has_focus() for a valid focussed terminal to return --- terminatorlib/terminator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index aede3336..1889cab6 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -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)