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

Dragging a window to 2nd row or more fails in Overview #274

Open Francewhoa opened 9 months ago

Francewhoa commented 9 months ago

Summary

Dragging a window to a workspace only works for the first row of the grid. Dragging a window to a workspace on the second or more row of the same grid, are automatically moved to the first row. This short two minutes video shows this challenge at:

The needed end result is that users are able to drag a window to any workspaces on any rows within the grid

Any volunteer for a patch? Both me and the Ubertus.Org team would be happy, as volunteer, to contribute testing and documentation, if needed.

Steps to reproduce

  1. Watch this short 2 minutes video for the Workspace-Matrix configuration and a summary of all the steps at:

  2. Use the most recent stable Debian 12 Bookworm, GNOME 43.9, Wayland, and Workspace-Matrix 38

  3. Using Workspace-Matrix, create a 5 x 4 grid. So total 20 Workspaces.

  4. Using the Overview/Activities window, try to drag and drop a window to any Workspace between the Index 6 and 20. This fails. This is the challenge. The needed end result is that users are able to drag and drop windows to any Workspaces. Not just from 1 to 5 in this example.

  5. Same result with GNOME Wayland or X11 (Xorg)

Speculated cause

My guess is that the cause of this challenge is related to this array of list. In other words, the drag and drop works only in the first array. Details about this are in those 2 comments:

Suggested resolution

How about those 2 steps:

  1. Migrate _lists to one list? So that the drag and drop works. Another benefit of only one array is a better compatibility with other GNOME extensions.

  2. Instead of arrays, use CSS to create the grid. This would keep the data and the display fully independent. Not interfering with each other.

Related tickets

Those tickets below seems to be about different challenges. Some tickets claim that the drag and drop is resolved. But this present ticket is to confirm that it is not resolved. This challenge can be reproduced with the steps above.

https://github.com/mzur/gnome-shell-wsmatrix/issues/177

https://github.com/mzur/gnome-shell-wsmatrix/issues/200

https://github.com/mzur/gnome-shell-wsmatrix/issues/231

https://github.com/mzur/gnome-shell-wsmatrix/issues/234

https://github.com/mzur/gnome-shell-wsmatrix/issues/259

https://github.com/mzur/gnome-shell-wsmatrix/issues/267

https://github.com/mzur/gnome-shell-wsmatrix/issues/273

mzur commented 9 months ago

Hi thanks a lot for the detailed report. Can you please try the changes of https://github.com/mzur/gnome-shell-wsmatrix/pull/270 and see if this fixes the issue for you?

Francewhoa commented 8 months ago

Thanks for your reply @mzur :) Will do. I'll add my result here.

Francewhoa commented 8 months ago

Done. Test result at https://github.com/mzur/gnome-shell-wsmatrix/pull/270#pullrequestreview-1913068276

Francewhoa commented 6 months ago

Today, I added copies of my video from February 22nd, 2024 at: