diff options
-rw-r--r-- | contrib/sloppy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/sloppy.c b/contrib/sloppy.c index 3656476..deeea3f 100644 --- a/contrib/sloppy.c +++ b/contrib/sloppy.c @@ -99,8 +99,8 @@ main (void) char shell[256]; snprintf (shell, sizeof(shell), - "$RATPOISON -c \"select `$RATPOISON -c 'windows %%i %%n' | " - "grep '%ld' | awk '{print $2}'`\"", + "$RATPOISON -c \"select `$RATPOISON -c 'windows %%i %%n'" + "| awk '$1 == %ld { print $2; }'`\"", event.xcrossing.window); spawn (shell); wait (NULL); |