From 2f4011b4c5ec416d78d6da304315708a42e39798 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 13 Jul 2023 19:31:26 -0700 Subject: sdl_fb: hide cursor when fullscreen --- src/sdl_fb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/sdl_fb.c b/src/sdl_fb.c index c398b92..6a67411 100644 --- a/src/sdl_fb.c +++ b/src/sdl_fb.c @@ -220,6 +220,9 @@ static int sdl_fb_acquire(til_fb_t *fb, void *context, void *page) if (!c->texture) return -1; + if (c->flags & SDL_WINDOW_FULLSCREEN || c->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) + SDL_ShowCursor(SDL_DISABLE); + return 0; } -- cgit v1.2.3