Merge pull request #280 from hwhw/master

Viewport related fixes (affecting Kobos)
bugfix: pass update marker by ref, not by value

ioctl() for waiting for refresh/update used a wrong call mechanism