Use coordinates relative to Window

This should make it much more reliable and screen resolution independent.
Tested with the Ricoh Windows app version 1.8.0