Skip to content

Commit 9137ced

Browse files
authored
Hide mouse cursor on full screen (#396)
1 parent ec92c53 commit 9137ced

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

usr/lib/hypnotix/hypnotix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,7 @@ def on_mpv_drawing_area_draw(self, widget, cr):
16611661
cr.paint()
16621662

16631663
def normal_mode(self):
1664+
self.window.get_window().set_cursor(None)
16641665
self.window.unfullscreen()
16651666
self.mpv_top_box.show()
16661667
self.mpv_bottom_box.hide()
@@ -1698,6 +1699,7 @@ def full_screen_mode(self):
16981699
if self.stack.get_visible_child_name() == "channels_page":
16991700
self.fullscreen = not self.fullscreen
17001701
if self.fullscreen:
1702+
self.window.get_window().set_cursor(Gdk.Cursor.new_from_name(Gdk.Display.get_default(), "none"))
17011703
# Fullscreen mode
17021704
self.window.fullscreen()
17031705
self.mpv_top_box.hide()

0 commit comments

Comments
 (0)