wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Wobby windows: deform only corner being dragged and gradual release

Open digitalsignalperson opened this issue 1 year ago • 1 comments

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.

digitalsignalperson avatar Aug 07 '24 22:08 digitalsignalperson

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.

ammen99 avatar Aug 20 '24 13:08 ammen99