Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
set cursor on the root window. Fixes Antergos/web-greeter#117
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Feb 19, 2017
1 parent fccf388 commit 83b9cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions whither/toolkits/gtk/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ def _initialize(self) -> None:
if config.stays_on_top:
self.widget.set_keep_above(True)

# Set the cursor for the root window to prevent ugly default X cursor from being shown.
root_window = Gdk.get_default_root_window()
default_display = Gdk.Display.get_default_display()
cursor = Gdk.Cursor.new_for_display(default_display, Gdk.CursorType.LEFT_PTR)
root_window.set_cursor(cursor)

self.set_state(self.states[initial_state])

def _init_menu_bar(self) -> None:
Expand Down
1 change: 1 addition & 0 deletions whither/toolkits/qt/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def _initialize(self) -> None:
self.widget.windowFlags() | Qt.MaximizeUsingFullscreenGeometryHint
)

self.widget.setCursor(Qt.ArrowCursor)
self.set_state(self.states[initial_state])

def _init_menu_bar(self) -> None:
Expand Down

0 comments on commit 83b9cda

Please sign in to comment.