Skip to content

Commit

Permalink
Update screensaver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Feb 9, 2025
1 parent 62c2ff8 commit 5bb885e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ks_includes/widgets/screensaver.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def show(self):
halign=Gtk.Align.CENTER, width_request=self.screen.width, height_request=self.screen.height)
box.pack_start(close, True, True, 0)
box.get_style_context().add_class("screensaver")
self.blackbox = box
for child in self.screen.overlay.get_children():
child.hide()
self.screen.overlay.add(self.blackbox)
self.screen.overlay.add_overlay(box)

# Avoid leaving a cursor-handle
close.grab_focus()
self.screen.gtk.set_cursor(False, window=self.screen.get_window())

self.blackbox = box
self.blackbox.show_all()
self.screen.power_devices(None, self.config.get_main_config().get("screen_off_devices", ""), on=False)
return False
Expand Down

0 comments on commit 5bb885e

Please sign in to comment.