FS#62294 - [dmenu] screw up window/keyboard focus

Attached to Project: Community Packages
Opened by David '-1' Schmid (gdkags) - Wednesday, 10 April 2019, 11:23 GMT
Last edited by Toolybird (Toolybird) - Friday, 21 April 2023, 07:20 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

dmenu 4.9 contains a bug that will screw up window/keyboard focus and redirecting input to the correct window.
It was fixed upstream (db6093f6ec1bb884f7540f2512935b5254750b30), I applied the fixes to a local build and works as expected.

Additional info:
* package version(s)
4.9-1
* link to upstream bug report, if any
https://git.suckless.org/dmenu/commit/db6093f6ec1bb884f7540f2512935b5254750b30.html

seems related to https://bugs.archlinux.org/task/61673

* Steps to reproduce:
unsure. for me it's with i3-wm+dmenu:

1. open up a terminal
2. position mouse pointer on i3 bar or somewhere else, where it won't touch a new window.
3. launch another terminal through dmenu (or anything really); it should be focused automatically.
4. do some keyboard input and observe text appearing in unfocused terminal.
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 21 April 2023, 07:20 GMT
Reason for closing:  Fixed
Comment by David '-1' Schmid (gdkags) - Wednesday, 10 April 2019, 11:25 GMT
(I'm sorry for screwing up the subject, I just noticed after submitting)
Comment by David '-1' Schmid (gdkags) - Friday, 31 May 2019, 15:14 GMT
asp checkout dmenu && cd dmenu/trunk
makepkg -o && git apply --directory=src/dmenu-4.9 ~/patch.diff
makepkg -e

use attached patch.diff or generate it for yourself by executing:
git clone git://git.suckless.org/dmenu && cd dmenu
git diff a9b1de384ae1ad30805e893af5cd6ea9b87c89da..db6093f6ec1bb884f7540f2512935b5254750b30 > ~/patch.diff
Comment by Chris Down (cdown) - Monday, 21 September 2020, 18:12 GMT
This is fixed in dmenu 5.0, just waiting for [community] to be updated. Thanks.

Loading...