Hack to get sample window to update, and to fix buffer/block problem in Linux.