Skip to content

Commit

Permalink
Merge pull request #113 from mattrose/fix-x11-error
Browse files Browse the repository at this point in the history
Fix crash when GdkX11 module is not available when creating layout
  • Loading branch information
mattrose authored Jun 10, 2020
2 parents f70737c + 90ca702 commit 7e70a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminatorlib/terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def layout_done(self):
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)

Expand All @@ -419,7 +419,7 @@ def layout_done(self):
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)

Expand Down

0 comments on commit 7e70a5b

Please sign in to comment.