[xmonad] Issue 476 in xmonad: Xmonad should release key binding before spawning

codesite-noreply at google.com codesite-noreply at google.com
Sun Sep 18 17:04:15 CEST 2011

Status: New
Owner: ----

New issue 476 by JohnTy... at gmail.com: Xmonad should release key binding  
before spawning

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

More information about the xmonad mailing list