Hide mouse cursor

This commit is contained in:
Jan Hamal Dvořák 2025-03-10 20:20:28 +01:00
parent 0655290232
commit f934fe0b14
Signed by: mordae
GPG key ID: 1782BCC23EE007B9

View file

@ -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)