Disable mouse cursor

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

View file

@ -59,7 +59,8 @@ class MainWindow(Gtk.ApplicationWindow):
key_controller.connect("key-pressed", self._on_key_pressed)
self.add_controller(key_controller)
# Hide mouse cursor
# Disable and hide mouse cursor
self.set_can_target(False)
display = Gdk.Display.get_default()
if display:
cursor = Gdk.Cursor.new_from_name("none")