Work around SDL2/X/WM problems when edge workspace flipping is enabled.

Problem is to do with edge windows used by the WM for workspace flipping.
With relative mode enabled and mouse grab on our window, they eat button
events but not motion events. Recentring the pointer works around this.