commit da229800939a564a7e5ff612118aab65eb33a25e
parent beafbc645813bef5de67a75ff4cf05ec8dedba07
Author: sewn <sewn@disroot.org>
Date: Thu, 12 Sep 2024 17:31:44 +0300
display dmenu multisel accurately
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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') {