From d1f7e02b5c0fa75ae6c570a2966907a9b7085ab3 Mon Sep 17 00:00:00 2001 From: Sven Willner Date: Sun, 31 May 2020 18:27:02 +0200 Subject: [PATCH] Fix cursor showing/hiding to use root window --- highlight-pointer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/highlight-pointer.c b/highlight-pointer.c index 108bcba..9eaf52a 100644 --- a/highlight-pointer.c +++ b/highlight-pointer.c @@ -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; }