Red Hat Bugzilla – Bug 874855
xmonad does not follow ICCCM and ignores WM_TAKE_FOCUS protocol
Last modified: 2015-07-13 00:43:41 EDT
Description of problem:
I experience symptoms of this problem primarily when using java programs (but not all java programs). Where there is a GUI component that should allow text entry, it is not possible to place the cursor in that component and allow typed text to appear there.
Version-Release number of selected component (if applicable):
Currently seeing this in 0.10-11 but has been observed since I started using xmonad some months ago.
One known example of java app affected by this bug is thermostat.
# yum install thermostat
$ thermostat service --start
(this^ will block terminal)
$ thermostat gui
In left-most panel of gui, near upper edge, is a search box. Try as I might, I cannot place the cursor in this search box. Works when using other WM.
This is a long-standing bug in upstream.
comment 33 at above link has patch that allegedly fixed things, which is supposed to be upstream for some time now, but others find that they still have this issue (and myself apparently). comment 107 may have useful info for how to build/install xmonad in rpm package such that java7 users (ie all of f17 users) are also not affected anymore. I haven't tested it, not really interested in installing wm separate from fedora repos, but I would be happy to test any rpm builds that may sometime be available!
Same problem as mine https://bugzilla.redhat.com/show_bug.cgi?id=837388 although I use Bluetile, which utilizes Xmonad anyway. I would be really happy if someone tried to apply the patch and made a package, Xmonad does seem to take it bit slow, so waiting for upstream could take long. At least some test package would be great, if patching it official would be a problem. The whole Haskell patching and compiling thing is unfortunatelly over my head, otherwise I would try it myself.
Thanks for the reports - will try to get back to you soon.
I ran into this issue as well, and extracted the relevant patches out of the xmonad and XMonadContrib darcs repos (which have just recently incorporated the patches from the bug).
Here are the patches (track-currently-processing-event.patch is for xmonad, icccmfocus.patch is for XMonadContrib), as well as some quickly modified spec files: http://ricky.fedorapeople.org/xmonad/
*** Bug 837388 has been marked as a duplicate of this bug. ***
I committed track-currently-processing-event.patch to xmonad master:
Please test :)
Will update xmonad-contrib and bluetile soon.
I committed icccmfocus.patch to fedora xmonad-contrib:master.
Here is an untested srpm which should build against the above patched xmonad:
Ok, xmonad and ghc-xmonad-contrib also built for F19 Rawhide:
These builds should work also on F18 (since rawhide is still on ghc-7.4.1)
but not for F17 or earlier.
xmonad-0.10-15.fc18,ghc-xmonad-contrib-0.10-7.fc18,bluetile-0.6-10.fc18 has been submitted as an update for Fedora 18.
xmonad-0.10-15.fc17,ghc-xmonad-contrib-0.10-7.fc17,bluetile-0.6-10.fc17 has been submitted as an update for Fedora 17.
If people could test either of these that would be most helpful.
Once we are sure they are good - it can also be backported to f16
if there is demand I guess.
Just updated my bluetile, ghc-xmonad and ghc-xmonad-contrib and did quick test and Netbeans IDE with OpenJDK 1.7 works as supposed to, earlier mentioned test case too. Awesome! :)
I've updated *xmonad* packages from the update (not bluetile, I don't use it) and all is well. Added karma. Thanks a lot for getting this out, Jens!
Package xmonad-0.10-15.fc18, ghc-xmonad-contrib-0.10-7.fc18, bluetile-0.6-10.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xmonad-0.10-15.fc18 ghc-xmonad-contrib-0.10-7.fc18 bluetile-0.6-10.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Looks good to me on F18 and F17.
So I will also backport to F16 and EPEL6
xmonad-0.10-3.8.fc16 has been submitted as an update for Fedora 16.
Well actually https://admin.fedoraproject.org/updates/xmonad-0.10-3.8.fc16,ghc-xmonad-contrib-0.10-7.fc16,bluetile-0.6-10.fc16
xmonad-0.10-15.fc18, ghc-xmonad-contrib-0.10-7.fc18, bluetile-0.6-10.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
xmonad-0.10-15.fc17, ghc-xmonad-contrib-0.10-7.fc17, bluetile-0.6-10.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
xmonad-0.10-3.8.fc16, ghc-xmonad-contrib-0.10-7.fc16, bluetile-0.6-10.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
xmonad-0.10-3.4.2.el6,ghc-xmonad-contrib-0.10-7.el6 has been submitted as an update for Fedora EPEL 6.
xmonad-0.10-3.4.2.el6, ghc-xmonad-contrib-0.10-7.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.