Fix crash when GdkX11 module is not available when creating layout

This commit is contained in:
Matt Rose 2020-06-03 11:50:03 -04:00
parent 9d5c2a6bb3
commit 90ca702081
1 changed files with 2 additions and 2 deletions

View File

@ -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)