codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Xmonad should release key binding before spawning #476

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using scrot here to take screen shots. Scrot grabs the keyboard to listen for a 
keypress as a signal to abort. If the keyboard is not avaiable, it dies with 
error:

```giblib error: couldn't grab keyboard:Resource temporarily unavailable```

To test:

bind "scrot -s > /tmp/logfile" to a keypress in xmonad.hs

Activate keypress, nothing happens.

Check logfile, find error stated above.

I think it's a race condition because binding to "sleep 0.2; scrot -s" works 
here.  The real problem is that xmonad is unnecessarily hanging on to keyboard 
and the spawned app is expecting it.

What version of the product are you using? On what operating system?
0.9.2/slackware linux

Original issue reported on code.google.com by JohnTy...@gmail.com on 18 Sep 2011 at 3:04