gtk: Make titlebar gestures more like GTK and prepare for wm_gestures_v1 extension
The user facing change is that drag now requires a drag threshold, just like GTK proper does.
Things were also refactored a bit to make it easier to add support for wayland/wayland-protocols!229. Didn't start an actual implementation of said protocol yet, but with this branch, it should be pretty trivial.