diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-04-22 11:03:20 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-04-22 11:03:20 +0200 |
commit | 452bd9740bef7cf6c3b1dcb19616adfe84217612 (patch) | |
tree | d22d4c6fddc88534be71c45369981726404ab671 | |
parent | a10fe576ada8a294739d4cd65273acdc8e4db4e2 (diff) | |
download | ratpoison-452bd9740bef7cf6c3b1dcb19616adfe84217612.zip |
"Fix" for sloppy.c
* so it seems like this change makes some users' life better. It still
fails to behave properly here, but I don't care. :)
-rw-r--r-- | contrib/sloppy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/sloppy.c b/contrib/sloppy.c index 7e026ca..64598fd 100644 --- a/contrib/sloppy.c +++ b/contrib/sloppy.c @@ -103,8 +103,7 @@ main (void) char shell[256]; snprintf (shell, sizeof(shell), - "$RATPOISON -c \"select `$RATPOISON -c 'windows %%i %%n'" - "| awk '$1 == %ld { print $2; }'`\"", + "$RATPOISON -c \"select $($RATPOISON -c 'windows %%i %%n %%f' | grep '%ld' | awk '$3 != '$($RATPOISON -c curframe)' && $3 != \"\" {print $2}')\" 2>/dev/null", event.xcrossing.window); spawn (shell); wait (NULL); |