Fix a bug on clicking in panels (on Mac and Linux) ##panels
This commit is contained in:
parent
4435011c8d
commit
2d7f7e4e6d
|
@ -208,13 +208,7 @@ R_API int r_cons_arrow_to_hjkl(int ch) {
|
||||||
}
|
}
|
||||||
pos[p++] = 0;
|
pos[p++] = 0;
|
||||||
y = atoi (pos);
|
y = atoi (pos);
|
||||||
// M is mouse down , m is mouse up
|
r_cons_set_click (x, y);
|
||||||
if (ch == 'M' || ch == 'm') {
|
|
||||||
r_cons_set_click (x, y);
|
|
||||||
if (ch == 'm') {
|
|
||||||
return INT8_MAX - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
case '[':
|
case '[':
|
||||||
|
|
|
@ -1967,7 +1967,7 @@ bool __handle_mouse(RCore *core, RPanel *panel, int *key) {
|
||||||
if (__drag_and_resize (core)) {
|
if (__drag_and_resize (core)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (*key == 0) {
|
if (!*key) {
|
||||||
int x, y;
|
int x, y;
|
||||||
if (r_cons_get_click (&x, &y)) {
|
if (r_cons_get_click (&x, &y)) {
|
||||||
if (y == MENU_Y && __handle_mouse_on_top (core, x, y)) {
|
if (y == MENU_Y && __handle_mouse_on_top (core, x, y)) {
|
||||||
|
|
Loading…
Reference in New Issue