Fix exception when running under Wayland where we attempt something X11 specific
This commit is contained in:
parent
36f89f8903
commit
eb37238fa3
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue