From f272512a7e810549185b2cb3fea50a83e37a7381 Mon Sep 17 00:00:00 2001 From: cy384 Date: Fri, 22 Jan 2021 20:37:18 -0500 Subject: [PATCH] fix selection bug while resizing window --- ssheven.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ssheven.c b/ssheven.c index a593e06..4735b99 100644 --- a/ssheven.c +++ b/ssheven.c @@ -609,8 +609,12 @@ void event_loop(void) } break; case mouseUp: - GetMouse(&local_mouse_position); - mouse_click(local_mouse_position, false); + // only tell the console to lift the mouse if we clicked through it + if (con.mouse_state) + { + GetMouse(&local_mouse_position); + mouse_click(local_mouse_position, false); + } break; }