mzur / gnome-shell-wsmatrix

GNOME shell extension to arrange workspaces in a two-dimensional grid with workspace thumbnails
GNU General Public License v3.0
469 stars 60 forks source link

Drag-n-drop across workspaces broken if popup timeout is 0: Popup gets stuck and file cannot be dropped #200

Open humanplayer2 opened 2 years ago

humanplayer2 commented 2 years ago

I sometimes use the mouse to drag-n-drop files across workspaces and applications. I can't do that in v33 with the popup timeout set to zero.

Two issues arise:

  1. The popup is keeps showing when releasing both the "activator key" /workspace switcher shortcut key (I use Super + Arrow Keys for workspace switching, so Super in my case) and the mouse key. LMB again makes it go away.
  2. The dragged file is not dropped correctly in place, but just "floats away" as if dropped in an incompatible location.

Steps to reproduce:

  1. Set Workspace Matrix popup timeout to 0 (so the popup stays shown until the activator key is released).
  2. Open Nautilus on different workspaces A and B, viewing different folders.
  3. Pick up a file on A (RMB click-and-hold the file, move the mouse a bit), and switch to B while holding the file with LMB down.
  4. Upon releasing the activator key, the popup stays.

This does not happen if the timeout is non-zero. I'm on Matrix Workspace v33, GNOME 40.

UPDATE: On GNOME 42, Matrix Workspace v34, files can now be dragged and dropped, but the popup stays.

ebeem commented 2 years ago

Thanks for reporting, I am pretty sure this issue has something to do with #198 Probably dragging a file is one of the reserved modifier masks by gnome, I will try to debug this more and see if this PR caused any unexpected behavior. However, we can't simply revert it because it's actually fixing another bug about reserved modifiers.

ebeem commented 2 years ago

Can you please check with an earlier release of wsmatrix? like v6.3 or v6.2. Please let me know if this fixes it as it seems like I am not able to get it working myself.

humanplayer2 commented 2 years ago

Alas no, the problem persists in both 6.2 and 6.3. I tried the former in Wayland too, without change.

If there is anything else I can check or elaborate on, then ask away!

ebeem commented 2 years ago

@humanplayer2 Thanks for letting me know! it seems like this is not a problem with the extension then, but probably a gnome update that broke this feature. I will try to see if I can find any open issues regarding this in their gitlab.

mzur commented 2 years ago

Maybe related to #219.

humanplayer2 commented 2 years ago

On GNOME 42, Matrix Workspace v34, files can now be dragged and dropped, but the popup stays.