dimmer: fix exception catching when handling X events

This commit is contained in:
Vincent Bernat 2021-08-07 14:11:59 +02:00
parent 383c52c4be
commit 3a61a26cba

View file

@ -27,7 +27,7 @@ def on_xevent(source, condition, xdisplay, locker):
continue
try:
wmclass = event.window.get_wm_class()
except error.BadWindow:
except BadWindow:
continue
if wmclass and wmclass[1] == locker:
Gtk.main_quit()