Hide mouse cursor
This commit is contained in:
parent
0655290232
commit
f934fe0b14
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,13 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||||
key_controller.connect("key-pressed", self._on_key_pressed)
|
key_controller.connect("key-pressed", self._on_key_pressed)
|
||||||
self.add_controller(key_controller)
|
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 horizontal box to split the screen
|
||||||
main_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
main_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue