From f934fe0b1458766025570f426394591f935d8669 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= <mordae@anilinux.org>
Date: Mon, 10 Mar 2025 20:20:28 +0100
Subject: [PATCH] Hide mouse cursor

---
 lazy_player/__init__.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lazy_player/__init__.py b/lazy_player/__init__.py
index ed3f936..588d07c 100644
--- a/lazy_player/__init__.py
+++ b/lazy_player/__init__.py
@@ -59,6 +59,13 @@ class MainWindow(Gtk.ApplicationWindow):
         key_controller.connect("key-pressed", self._on_key_pressed)
         self.add_controller(key_controller)
 
+        # Hide mouse cursor
+        display = Gdk.Display.get_default()
+        if display:
+            cursor = Gdk.Cursor.new_from_name("none")
+            if cursor:
+                self.set_cursor(cursor)
+
         # Main horizontal box to split the screen
         main_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)