Fix window position polling

Window position polling fetched current timestamp (`getDt()`) every
`longDelay` milliseconds that reset idle timers in `state.js`.
Separating the polling part from handling window position change events
solved this.
Fix marking and marker handling