diff --git a/libs/wl/wayland.c b/libs/wl/wayland.c index c60546e..cf6d696 100644 --- a/libs/wl/wayland.c +++ b/libs/wl/wayland.c @@ -289,6 +289,10 @@ void buttonpress_wl(uint32_t button, double ex, double ey) { ey -= menumarginv; + if (hideprompt && hideinput && hidemode && hidematchcount && hidecaps) { + ey += h; + } + for (item = curr; item != next; item = item->right) { if (item_num++ == lines) { item_num = 1; diff --git a/libs/x11/mouse.c b/libs/x11/mouse.c index 11cce2f..2a726e2 100644 --- a/libs/x11/mouse.c +++ b/libs/x11/mouse.c @@ -69,6 +69,10 @@ void buttonpress_x11(XEvent *e) { ev->y -= menumarginv; + if (hideprompt && hideinput && hidemode && hidematchcount && hidecaps) { + ev->y += h; + } + for (item = curr; item != next; item = item->right) { if (item_num++ == lines) { item_num = 1;