From c574d77374aeb119f7c00c05d9af4ca14a7ebc8c Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 18 Dec 2021 11:58:38 +0100 Subject: [PATCH] Remove duplicated variable --- terminatorlib/window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 3490b270..6f443b23 100644 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -915,9 +915,8 @@ class Window(Container, Gtk.Window): if len(winners) > 1: # Break an n-way tie using the cursor position - term_alloc = terminal.get_allocation() - cursor_x = term_alloc.x + term_alloc.width / 2 - cursor_y = term_alloc.y + term_alloc.height / 2 + cursor_x = allocation.x + allocation.width / 2 + cursor_y = allocation.y + allocation.height / 2 for term in winners: rect = layout[term]