From 9f2dae5e5f3208eee68a37c6dce7e1c361939cc4 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 3 Jun 2018 19:18:52 +0300 Subject: [PATCH] Always uncapture mouse before closing window/exiting. --- od-win32/win32.cpp | 2 +- od-win32/win32gfx.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 30a84238..339ea055 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -754,7 +754,7 @@ static void setcursorshape(int monid) } } -static void releasecapture(void) +void releasecapture(void) { //write_log(_T("releasecapture %d\n"), showcursor); #if 0 diff --git a/od-win32/win32gfx.cpp b/od-win32/win32gfx.cpp index 8effcb65..04884d97 100644 --- a/od-win32/win32gfx.cpp +++ b/od-win32/win32gfx.cpp @@ -1847,6 +1847,7 @@ static void createblankwindows (void) static void close_hwnds(struct AmigaMonitor *mon) { mon->screen_is_initialized = 0; + releasecapture(); if (!mon->monitor_id) { display_vblank_thread_kill(); #ifdef AVIOUTPUT -- 2.47.3