fix clicks if !lines, oops
This commit is contained in:
parent
f99cc1d62a
commit
ddb38c8cec
|
@ -251,6 +251,8 @@ void buttonpress_wl(uint32_t button, double ex, double ey) {
|
||||||
yp = 1;
|
yp = 1;
|
||||||
} else if (lines && ey < h + menumarginv && ey > menumarginv) {
|
} else if (lines && ey < h + menumarginv && ey > menumarginv) {
|
||||||
yp = 1;
|
yp = 1;
|
||||||
|
} else if (!lines) {
|
||||||
|
yp = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
click = ClickWindow; // clicking anywhere, we use this and override it if we clicked on something specific
|
click = ClickWindow; // clicking anywhere, we use this and override it if we clicked on something specific
|
||||||
|
|
|
@ -29,6 +29,8 @@ void buttonpress_x11(XEvent *e) {
|
||||||
yp = 1;
|
yp = 1;
|
||||||
} else if (lines && ev->y < h + menumarginv && ev->y > menumarginv) {
|
} else if (lines && ev->y < h + menumarginv && ev->y > menumarginv) {
|
||||||
yp = 1;
|
yp = 1;
|
||||||
|
} else if (!lines) {
|
||||||
|
yp = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev->window != win) return; // if incorrect or wrong window, return
|
if (ev->window != win) return; // if incorrect or wrong window, return
|
||||||
|
|
Loading…
Reference in a new issue