fixed window sizeing to use the real size of the viewport
support mouse move events on raspberrypi