[Enhancement] Anchor surface drawing to resized corner to alleviate wobbles when resizing
Description
When resizing a window, the contents get stretched until the program catches up with the resize and provides a properly-sized surface. This works, but causes a visible wobble in elements as the resize happens, and is not very visually pleasing.
I saw this recently merged pull request for the sokol-gfx macOS Metal backend that solves this in a pretty smart way, and I think it'd be cool to see a similar solution implemented in Hyprland: https://github.com/floooh/sokol/pull/963
The drawing is anchored to a different point depending on which corner of the window is being dragged. The videos in the PR show the issue, which also happens on Hyprland. It's especially noticeable with apps that are slow to redraw, such as foot running btop resizing to the right.
https://github.com/hyprwm/Hyprland/assets/44881120/2d372521-6078-40d4-aeff-5e157b604304
yes please, the stretching looks very unpleasing