wayfire
wayfire copied to clipboard
Wobby windows: deform only corner being dragged and gradual release
I'm coming from KDE and testing out the all important wobbly windows. So I'm comparing my experience to their implementation that I'm used to.
I notice when resizing a window, the entire window deforms like it is being expanded or compressed from all sides at once. E.g.:
- grab bottom right corner of window and drag away from the window to expand:
- Observe: left side and right sides of the window expand outwards like two hands stretching a sheet
- Expected: stretching only from the bottom right corner with the rest of the window following (similar to how it looks moving the window from this corner with Super+LMB)
- grab bottom right corner of window and drag to make smaller:
- left side and right side of the windows compress inwards
The other thing is when releasing the mouse button, the window mid-wobble seems to almost instantly snap to a rectangle. It would be nice if it naturally finished it's wobble animation itself so it's less jarring.
I am not familiar with how the actual wobbly physics work (it was taken from a project by @soreau) so I do not know how to achieve this at all. PRs welcome.