From 2c07ec50c38c9ca2ce840f34abeaeee4d8b0a9e2 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 16 Sep 2021 21:17:07 +0900 Subject: [PATCH] terminal: fix bad bounds in mouse position check --- apps/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal.c b/apps/terminal.c index 54c78404..6863bae9 100644 --- a/apps/terminal.c +++ b/apps/terminal.c @@ -1989,7 +1989,7 @@ static void * handle_incoming(void) { me->new_y >= (int)(window_height + decor_top_height+menu_bar_height) || me->new_x < (int)decor_left_width || me->new_x >= (int)(window_width + decor_left_width))) || - (me->new_x >= (int)window_width || me->new_y >= (int)window_height)) { + (_no_frame && (me->new_x >= (int)window_width || me->new_y >= (int)window_height))) { if (window->mouse_state == YUTANI_CURSOR_TYPE_IBEAM) { yutani_window_show_mouse(yctx, window, YUTANI_CURSOR_TYPE_RESET); }