From ddb38c8cecdae9013341db2d8219063579389780 Mon Sep 17 00:00:00 2001 From: speedie Date: Mon, 19 Jun 2023 23:26:23 +0200 Subject: [PATCH] fix clicks if !lines, oops --- libs/wl/wayland.c | 2 ++ libs/x11/mouse.c | 2 ++ 2 files changed, 4 insertions(+) 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