Fix crash when GdkX11 module is not available when creating layout
This commit is contained in:
parent
9d5c2a6bb3
commit
90ca702081
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user