Skip to content

Commit

Permalink
Fix cursor showing/hiding to use root window
Browse files Browse the repository at this point in the history
  • Loading branch information
swillner committed May 31, 2020
1 parent d9722aa commit d1f7e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions highlight-pointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ static void redraw();
static int get_pointer_position(int* x, int* y);

void show_cursor() {
XFixesShowCursor(dpy, win);
XFixesShowCursor(dpy, root);
cursor_visible = 1;
}

void hide_cursor() {
XFixesHideCursor(dpy, win);
XFixesHideCursor(dpy, root);
cursor_visible = 0;
}

Expand Down

0 comments on commit d1f7e02

Please sign in to comment.