From c00a54d867a15a5803d46a3d681d54382b19af8b Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Thu, 8 Apr 2021 21:57:41 +0200 Subject: [PATCH] Fixed geometry hints --- terminatorlib/terminal.py | 3 +++ terminatorlib/window.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 4715e86c..2dc64791 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1330,6 +1330,9 @@ class Terminal(Gtk.VBox): if self.config['geometry_hinting']: window = self.get_toplevel() window.deferred_set_rough_geometry_hints() + else: + window = self.get_toplevel() + window.disable_geometry_hints() def on_vte_notify_enter(self, term, event): """Handle the mouse entering this terminal""" diff --git a/terminatorlib/window.py b/terminatorlib/window.py index fb01845a..cd0a2336 100644 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -667,7 +667,10 @@ class Window(Container, Gtk.Window): geometry.base_height = extra_height geometry.width_inc = font_width geometry.height_inc = font_height - self.set_geometry_hints(self, geometry, Gdk.WindowHints.BASE_SIZE | Gdk.WindowHints.RESIZE_INC) + self.set_geometry_hints(None, geometry, Gdk.WindowHints.BASE_SIZE | Gdk.WindowHints.RESIZE_INC) + + def disable_geometry_hints(self): + self.set_geometry_hints(None, None, 0) def tab_change(self, widget, num=None): """Change to a specific tab"""