With version 4.9 input focus is lost after run dmenu. For details see: https://lists.suckless.org/dev/1902/33272.html
Thanks for your report. I'll try to fix it soon. Could you try if the following commit fixes the issue in your case? https://git.suckless.org/dmenu/commit/153aaf88bf9bf5c6c4b118bd871f8cf1eafdcab5.html
(In reply to Mateusz Piotrowski from comment #1) I tried commit https://git.suckless.org/dmenu/commit/153aaf88bf9bf5c6c4b118bd871f8cf1eafdcab5.html and it didn't fix the issue.
Created attachment 202441 [details] Patch As mentioned in dmenu mail list, attached patch fixes this issue for me.
Also reverting https://git.suckless.org/dmenu/commit/377bd37e212b1ec4c03a481245603c6560d0be22.html helps too.
https://reviews.freebsd.org/D19414
A commit references this bug: Author: 0mp Date: Sat Mar 16 18:18:20 UTC 2019 New revision: 495939 URL: https://svnweb.freebsd.org/changeset/ports/495939 Log: x11/dmenu: Patch an input focus bug Dmenu 4.9 was release with a bug causing problems with input focus. We apply a temporary fix while upstream prepares a new release. Mailing list discussion: https://lists.suckless.org/dev/1902/33272.html PR: 236107 Submitted by: Oleh Hushchenkov <o.hushchenkov@gmail.com> Reviewed by: mat Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D19414 Changes: head/x11/dmenu/Makefile head/x11/dmenu/files/ head/x11/dmenu/files/patch-dmenu.c
(In reply to commit-hook from comment #6) Thank you!
(In reply to Oleh Hushchenkov from comment #7) Big thanks to YOU for providing all the necessary links and patches :) Hopefully, upstream is going to release 4.10 or something soon