mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 13:00:02 +02:00
dimmer: fix exception catching when handling X events
This commit is contained in:
parent
383c52c4be
commit
3a61a26cba
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue