quickly bound mouse events to terminal size
This commit is contained in:
parent
772542a271
commit
d805ac8684
@ -1619,6 +1619,9 @@ void * handle_incoming(void) {
|
||||
new_x /= char_width;
|
||||
new_y /= char_height;
|
||||
|
||||
if (new_x < 0 || new_y < 0) break;
|
||||
if (new_x > term_width || new_y > term_height) break;
|
||||
|
||||
/* Map Cursor Action */
|
||||
if (ansi_state->mouse_on) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user