From d78b93efa213976167934395d848601a715f3de1 Mon Sep 17 00:00:00 2001 From: Frederic Bontemps <35567681+egon984@users.noreply.github.com> Date: Sun, 14 Sep 2025 14:01:59 +0200 Subject: [PATCH 1/3] hide mouse cursor on full screen --- usr/lib/hypnotix/hypnotix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index 4885ac5..2f45383 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -1689,6 +1689,7 @@ def full_screen_mode(self): if self.stack.get_visible_child_name() == "channels_page": self.fullscreen = not self.fullscreen if self.fullscreen: + self.window.get_window().set_cursor(Gdk.Cursor.new_from_name(Gdk.Display.get_default(), "none")) # Fullscreen mode self.window.fullscreen() self.mpv_top_box.hide() @@ -1698,6 +1699,7 @@ def full_screen_mode(self): self.status_label.hide() self.channels_box.set_border_width(0) else: + self.window.get_window().set_cursor(None) self.normal_mode() def on_fullscreen_button_clicked(self, widget): From 711f7146618c25bf5fd3bb40060d00fab1526e1f Mon Sep 17 00:00:00 2001 From: Frederic Bontemps <35567681+egon984@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:19:44 +0200 Subject: [PATCH 2/3] bugfix --- usr/lib/hypnotix/hypnotix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index 2f45383..9abb591 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -1473,6 +1473,7 @@ def on_key_press_event(self, widget, event): elif event.keyval == Gdk.KEY_F7: self.borderless_mode() elif event.keyval == Gdk.KEY_Escape: + self.window.get_window().set_cursor(None) self.normal_mode() elif event.keyval == Gdk.KEY_BackSpace and not ctrl and type(widget.get_focus()) != gi.repository.Gtk.SearchEntry: self.normal_mode() From 53890ea8c99b6c7239d0b5271047cfad98d5ee00 Mon Sep 17 00:00:00 2001 From: Frederic Bontemps <35567681+egon984@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:23:09 +0200 Subject: [PATCH 3/3] bugfix --- usr/lib/hypnotix/hypnotix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index 9abb591..f52a563 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -1473,7 +1473,6 @@ def on_key_press_event(self, widget, event): elif event.keyval == Gdk.KEY_F7: self.borderless_mode() elif event.keyval == Gdk.KEY_Escape: - self.window.get_window().set_cursor(None) self.normal_mode() elif event.keyval == Gdk.KEY_BackSpace and not ctrl and type(widget.get_focus()) != gi.repository.Gtk.SearchEntry: self.normal_mode() @@ -1653,6 +1652,7 @@ def on_mpv_drawing_area_draw(self, widget, cr): cr.paint() def normal_mode(self): + self.window.get_window().set_cursor(None) self.window.unfullscreen() self.mpv_top_box.show() self.mpv_bottom_box.hide() @@ -1700,7 +1700,6 @@ def full_screen_mode(self): self.status_label.hide() self.channels_box.set_border_width(0) else: - self.window.get_window().set_cursor(None) self.normal_mode() def on_fullscreen_button_clicked(self, widget):