pop-os / cosmic-workspaces-epoch

GNU General Public License v3.0
17 stars 11 forks source link

Offset drag indicator based on where the mouse is when the drag is started #37

Open ids1024 opened 2 months ago

ids1024 commented 2 months ago

Currently, when a window is dragged, the top left corner of the window is always at the cursor. While in the Gnome workspaces view (or dragging a file in nautilus, or a tab in Firefox), the cursor is over the part of the window where it was when the drag started. This is probably more natural to use.

I believe this will require support in iced-sctk to apply a wl_surface::offset to the drag surface.

ids1024 commented 2 months ago

I did implement this, but it's disabled for now. With large windows, and no transparency for the drag surface, this seems worse when the window covers what you're trying to drag it to completely.

If we want transparent drag surfaces, the new alpha-modifier-v1 Wayland protocol should help to accommodate that with subsurfaces.