From 132fd1f700bc4af788737ef4cb724654d2010620 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh <cc.red.alert.1@googlemail.com> Date: Tue, 14 Sep 2021 05:48:07 +0200 Subject: [PATCH] fix invisible cursor on alt+tab issue (cherry picked from commit 338d3aa2a2dcc9ad0a8385ccdee9447260eabe7f) --- src/mouse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mouse.c b/src/mouse.c index abf539d..5ef10d3 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -80,11 +80,7 @@ void mouse_unlock() real_GetClientRect(g_ddraw->hwnd, &rc); real_MapWindowPoints(g_ddraw->hwnd, HWND_DESKTOP, (LPPOINT)&rc, 2); - CURSORINFO ci = { .cbSize = sizeof(CURSORINFO) }; - if (real_GetCursorInfo(&ci) && ci.flags == 0) - { - while (real_ShowCursor(TRUE) < 0); - } + while (real_ShowCursor(TRUE) < 0); real_ClipCursor(NULL);