X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/f12cdd7284a3d144b17c25e271d1edf701692ece..9edb9f353b57d903d12f241691faf6e8b8cff276:/icons/screenshot.sh diff --git a/icons/screenshot.sh b/icons/screenshot.sh index cb856be..0e2a06e 100755 --- a/icons/screenshot.sh +++ b/icons/screenshot.sh @@ -22,13 +22,4 @@ else redo= fi -"$binary" $redo --windowid --load "$save" 2>/dev/null | { - read windowid - # I'm not sure why I have to do this sleep, since gtk.c does - # carefully redraw the window _before_ outputting the window ID, - # but nonetheless this script doesn't seem to be reliable without - # it :-/ - sleep 1 - xwd -silent -id $windowid | convert xwd:- "$image" - xkill -id $windowid >/dev/null -} +"$binary" $redo --screenshot "$image" --load "$save"