window move border collision detection
improved window event handling