Refreshing the Sketchup window on Linux

Sketchup has the annoying particularity to not refresh its window correctly when you run it on linux + wine. This little trick uses the xrefresh utility to refresh a pixel at the center of your screen, forcing the sketchup window to redraw. Put the following code in an executable script:

urxvt -e watch -n 0.3 xrefresh -geometry 1x1+500+500 &watchPID=$!cd /home/yorik/.wine/drive_c/Program Files/Google/Google SketchUp 8wine ./SketchUpkill $watchPID

Retrieved from