avoid reallocations as much as possible with a few edge cases where the reservation overshoots a tiny bit. but a few bytes of memory short term is better used then the overhead of potential reallocation.
ref #8759
Adds support for drag-and-drop from Wayland clients to XWayland ones