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?
(In reply to Mateusz Piotrowski from comment #1)
I tried commit
and it didn't fix the issue.
Created attachment 202441 [details]
As mentioned in dmenu mail list, attached patch fixes this issue for me.
A commit references this bug:
Date: Sat Mar 16 18:18:20 UTC 2019
New revision: 495939
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
Submitted by: Oleh Hushchenkov <email@example.com>
Reviewed by: mat
Approved by: mat (mentor)
Differential Revision: https://reviews.freebsd.org/D19414
(In reply to commit-hook from comment #6)
(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