robm / dzen

Dzen is a general purpose messaging, notification and menuing program for X11.
MIT License
607 stars 81 forks source link

Does not grabkeys sometimes. #53

Open jtgd opened 4 years ago

jtgd commented 4 years ago

I have a script which opens dzen2 and accepts a single key (and then does something and exits). If I use event string:

entertitle=grabkeys;enterslave=grabkeys;onstart=uncollapse,grabkeys

then it works fine when I invoke the script from a shell. But when I invoke the script from xbindkeys, it does not do the grabkeys. I have to manually move the mouse out and into the window (activating enterslave/entertitle) to get it to read the key. My kludge fix was to do this:

entertitle=grabkeys;enterslave=grabkeys;onstart=uncollapse,grabkeys,exec:xdotool mousemove 960 0 sleep 0.2 mousemove 900 35

which moves it for me (activating enterslave/entertitle). The sleep is required. Sleeping 0.1 does not work.

So I wonder if this a bug in the program, or is there something I did wrong regarding grabkeys such that it did not work from xbindkeys?