Merge pull request #113 from mattrose/fix-x11-error

Fix crash when GdkX11 module is not available when creating layout
This commit is contained in:
Matt Rose 2020-06-10 19:56:19 -04:00 committed by GitHub
commit 7e70a5b47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,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)
@ -419,7 +419,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)