From db112ec4b3a0613424afffb44505fce3289a7173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Thu, 23 Mar 2023 12:33:12 +0200 Subject: [PATCH] Fix coming out of resize if mouse is not above the window --- shell.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell.asm b/shell.asm index 76f6b22..04fbd29 100644 --- a/shell.asm +++ b/shell.asm @@ -186,6 +186,11 @@ paint: mouse: call get_window + test dl, MOUSE_PRIMARY | MOUSE_SECONDARY + jnz .any_buttons_held + mov byte [si + window.status], 0 + .any_buttons_held: + mov ax, bx push cx @@ -232,7 +237,6 @@ mouse: jmp .inside .not_buttons_held: mov byte [si + window.mouse_released_inside], 1 - mov byte [si + window.status], 0 .inside: pop cx