From 2323962168573b1660ec341b62e32ec1388a317c Mon Sep 17 00:00:00 2001 From: TomW Date: Mon, 31 Aug 2015 12:40:25 +0100 Subject: [PATCH] Workarounds for mouse pointer issues when entering/exiting fullscreen. Patch from ecksemmess. --- src/win.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/win.c b/src/win.c index 75b757e..26a9b66 100644 --- a/src/win.c +++ b/src/win.c @@ -191,6 +191,10 @@ void mainthread(LPVOID param) leave_fullscreen_flag = 0; SendMessage(ghwnd, WM_LEAVEFULLSCREEN, 0, 0); } + if (video_fullscreen) + { + SetCursorPos(9999, 9999); + } } } @@ -1031,7 +1035,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM pcclip.bottom -= GetSystemMetrics(SM_CXFIXEDFRAME) + 10; ClipCursor(&pcclip); mousecapture = 1; - ShowCursor(FALSE); +// ShowCursor(FALSE); + while (1) + { + if (ShowCursor(FALSE) < 0) break; + } } break;