The reason for this behavior is that spawn() is executed before the key release handling happens in dwm, thus scrot fails to grab the keyboard.
I consider adding a flag to execute a key binding on release. Thanks for reporting this. Cheers Anselm Am 19.08.2011 20:22 schrieb "Bastien Dejean" <esch...@gmail.com>: > Hi, > > The following command don't work (i.e. I can't select the region of the > screen I'm willing to capture) when it's spawn from dwm: > > static const char *partialshotcmd[] = { "scrot", "-s", NULL }; > > Any idea why? > > -- > Bastien >