From da229800939a564a7e5ff612118aab65eb33a25e Mon Sep 17 00:00:00 2001 From: sewn Date: Thu, 12 Sep 2024 17:31:44 +0300 Subject: [PATCH] display dmenu multisel accurately --- mew.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mew.c b/mew.c index b1d0926..3a19b97 100644 --- a/mew.c +++ b/mew.c @@ -613,9 +613,13 @@ keyboard_keypress(enum wl_keyboard_key_state state, xkb_keysym_t sym, int ctrl, case XKB_KEY_Return: case XKB_KEY_KP_Enter: submit((sel && !shift) ? sel->text : text); - if (!ctrl && submit != exec_cmd) + if (!ctrl && submit != exec_cmd) { running = 0; - return; + return; + } + if (sel) + sel->out = 1; + break; case XKB_KEY_Right: case XKB_KEY_KP_Right: if (text[cursor] != '\0') {