Disable mouse cursor
This commit is contained in:
parent
f934fe0b14
commit
eb8e7d6f9d
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue