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:
commit
7e70a5b47b
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user