Skip to content

Commit d1f7e02

Browse files
committed
Fix cursor showing/hiding to use root window
1 parent d9722aa commit d1f7e02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highlight-pointer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ static void redraw();
103103
static int get_pointer_position(int* x, int* y);
104104

105105
void show_cursor() {
106-
XFixesShowCursor(dpy, win);
106+
XFixesShowCursor(dpy, root);
107107
cursor_visible = 1;
108108
}
109109

110110
void hide_cursor() {
111-
XFixesHideCursor(dpy, win);
111+
XFixesHideCursor(dpy, root);
112112
cursor_visible = 0;
113113
}
114114

0 commit comments

Comments
 (0)