fix clicks if !lines, oops

This commit is contained in:
speedie 2023-06-19 23:26:23 +02:00
parent f99cc1d62a
commit ddb38c8cec
2 changed files with 4 additions and 0 deletions

View file

@ -251,6 +251,8 @@ void buttonpress_wl(uint32_t button, double ex, double ey) {
yp = 1;
} else if (lines && ey < h + menumarginv && ey > menumarginv) {
yp = 1;
} else if (!lines) {
yp = 1;
}
click = ClickWindow; // clicking anywhere, we use this and override it if we clicked on something specific

View file

@ -29,6 +29,8 @@ void buttonpress_x11(XEvent *e) {
yp = 1;
} else if (lines && ev->y < h + menumarginv && ev->y > menumarginv) {
yp = 1;
} else if (!lines) {
yp = 1;
}
if (ev->window != win) return; // if incorrect or wrong window, return