terminal: fix bad bounds in mouse position check
This commit is contained in:
parent
02bccf9ca4
commit
2c07ec50c3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user