mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
Revert "dimmer: tentative to quit if we are obscured (presumably by i3lock)"
This reverts commit d72855073a
. So, this
doesn't work.
This commit is contained in:
parent
d72855073a
commit
56806a7aea
1 changed files with 1 additions and 8 deletions
|
@ -13,15 +13,9 @@ import cairo
|
|||
import argparse
|
||||
|
||||
|
||||
def visibility_event(widget, event):
|
||||
if event.state == Gdk.VisibilityState.FULLY_OBSCURED:
|
||||
gtk.main_quit()
|
||||
|
||||
|
||||
def realize_event(widget):
|
||||
window = widget.get_window()
|
||||
window.set_override_redirect(True)
|
||||
window.set_events(window.get_events() | Gdk.EventMask.VISIBILITY_NOTIFY_MASK)
|
||||
|
||||
|
||||
def draw_event(widget, event, options, elapsed):
|
||||
|
@ -88,9 +82,8 @@ if __name__ == "__main__":
|
|||
window.move(geom.x, geom.y)
|
||||
|
||||
window.connect("draw", draw_event, options, [])
|
||||
window.connect("realize", realize_event)
|
||||
window.connect("visibility-notify-event", visibility_event)
|
||||
window.connect("delete-event", Gtk.main_quit)
|
||||
window.connect("realize", realize_event)
|
||||
|
||||
window.show_all()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue