DEM0NAssissan7 / mosaic

59 stars 3 forks source link

Extensions sometimes pushes windows to a different workspace when they should be able to fit #5

Open ludvigng opened 1 month ago

ludvigng commented 1 month ago

Hello,

Sometimes the extension seems to be confused whether new windows would fit on the current workspace or not, and automatically sends them to a new workspace: Skärminspelning från 2024-08-27 12-59-04 (trimmad).webm

Here I'm both launching new nautilus windows through hotkeys and trying to launch a terminal through the gnome launcher, both resulting in the new windows getting pushed to a new workspace, when they should be able to be fitted underneath the current nautilus window. When I close the text editor it works as expected, and I can create new nautilus windows and they stack nicely 2x2. It also works as expected when using smaller windows: Skärminspelning från 2024-08-27 13-05-40.webm

I'm guessing the extension doesn't like tall windows.

DEM0NAssissan7 commented 22 hours ago

This issue has existed since this extension's early conception and I know why it happens. I worked for many weeks straight trying to solve this problem by coming up with the most efficient tiling algorithm possible, but this issue is algorithmic and is far from trivial to solve. Thanks for bringing it up, though!