diff --git a/libs/wl/wayland.c b/libs/wl/wayland.c index b537beb..c60546e 100644 --- a/libs/wl/wayland.c +++ b/libs/wl/wayland.c @@ -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 diff --git a/libs/x11/mouse.c b/libs/x11/mouse.c index b81055f..11cce2f 100644 --- a/libs/x11/mouse.c +++ b/libs/x11/mouse.c @@ -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