Fix laggy resize and move
Use the current mouse position rather than the mouse position during the event
This way, it does not fall behind the current cursor position of you get a lot of X events