pop-os / cosmic-workspaces-epoch

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

Each window in a window stack is shown seperately, but dragging moves the whole stack #41

Open ids1024 opened 2 months ago

ids1024 commented 2 months ago

I'm not sure how we want to handle window stacks. But presumably this is not the desired behavior.

The simplest change would be to make cosmic-comp remove windows from the stack when they are moved in cosmic-workspaces. If we want cosmic-workspaces to be aware of stacks, that will require changes to the Wayland protocols we're using.

Drakulix commented 1 month ago

I wonder how much changes the protocol would really need, as I feel like handling the stacks as a whole would make more sense.

Theoretically it would be enough to change cosmic-comp to just treat stacks as single cosmic-toplevel-handles, but that obviously breaks app-list and much more.

Perhaps a "stacked" and "suspended" (for non-active stacked windows) state would be enough? And change the toplevel-capture request to include a including_stack-boolean argument? And probably some window-management functions like move-to-workspace as well, though I wonder, if that should move the whole stack by default anyway.