From 90ca7020810e4eae8e25321a837631b00581c2c9 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Wed, 3 Jun 2020 11:50:03 -0400 Subject: [PATCH] Fix crash when GdkX11 module is not available when creating layout --- terminatorlib/terminator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 681d724d..4243fd08 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -407,7 +407,7 @@ class Terminator(Borg): window.grab_focus() try: t = GdkX11.x11_get_server_time(window.get_window()) - except (TypeError, AttributeError): + except (NameError,TypeError, AttributeError): t = 0 window.get_window().focus(t) @@ -423,7 +423,7 @@ class Terminator(Borg): window.grab_focus() try: t = GdkX11.x11_get_server_time(window.get_window()) - except (TypeError, AttributeError): + except (NameError,TypeError, AttributeError): t = 0 window.get_window().focus(t)