From a7019a39c3497488e6e1e7c5851a2c28831a9f2b Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Sat, 26 Jul 2025 23:19:14 +0100 Subject: hide cursor at startup --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index b5a0ed0..fb00c98 100644 --- a/main.c +++ b/main.c @@ -5,7 +5,7 @@ static void xi_select_events(int); static Display *d; -static Window r; // root-window +static Window r; void xi_select_events(const int event) { unsigned char mask[3] = {None}; @@ -23,7 +23,12 @@ int main(void) { return 1; } r = XDefaultRootWindow(d); + xi_select_events(XI_RawKeyPress); + xi_select_events(XI_RawMotion); + + XFixesHideCursor(d, r); + XEvent e; XGenericEventCookie *c; while (!XNextEvent(d, &e)) { -- cgit v1.2.3