Fix exception when running under Wayland where we attempt something X11 specific

This commit is contained in:
Stephen Boddy 2017-02-28 20:48:11 +01:00
parent 36f89f8903
commit eb37238fa3
2 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ class Terminator(Borg):
window.grab_focus()
try:
t = GdkX11.x11_get_server_time(window.get_window())
except AttributeError:
except (TypeError, AttributeError):
t = 0
window.get_window().focus(t)
@ -417,7 +417,7 @@ class Terminator(Borg):
window.grab_focus()
try:
t = GdkX11.x11_get_server_time(window.get_window())
except AttributeError:
except (TypeError, AttributeError):
t = 0
window.get_window().focus(t)

View File

@ -311,7 +311,7 @@ class Window(Container, Gtk.Window):
self.grab_focus()
try:
t = GdkX11.x11_get_server_time(self.get_window())
except AttributeError:
except (TypeError, AttributeError):
t = 0
self.get_window().focus(t)
else: