domferr / tilingshell

Extend Gnome Shell with advanced tiling window management. Supports multiple monitors, Windows 11 Snap Assistant, Fancy Zones, customised tiling layouts and more.
https://extensions.gnome.org/extension/7065/tiling-shell/
GNU General Public License v2.0
600 stars 16 forks source link

Use keybinding to move to new tile at same edge after switching layout #159

Open thyttan opened 1 week ago

thyttan commented 1 week ago

Describe the bug If a window was tiled to a screen edge in one layout and the layout is changed, using Move window to right/left tile keybinding towards the same edge does not resize it to the new layout.

To Reproduce Steps to reproduce the behavior:

  1. Be on an empty workspace.
  2. Open a window.
  3. Snap the window to the right screen edge using keybinding Move window to right tile (repeat if needed).
  4. Change the tiling layout with different size tiles along the right screen edge compared to current layout.
  5. Try snapping to the new tile along the right screen edge with keybinding Move window to right tile.
  6. Notice nothing happens (Unexepected! I'd have expected the window to resize to the new layouts right edge tile)
  7. Use keybinding Move window to left tile to move window to new layout.
  8. Use keybinding Move window to right tile to move window to the new layouts right edge tile.

The repro above is what I do in the screencast below.

Screencast

https://github.com/user-attachments/assets/8b4754a5-3a1f-4bf9-8d15-296ef33d913c

Information (please complete the following):

Additional context image

domferr commented 1 week ago

Heheheh! I'm not used to move windows using keybindings, so your testing is very welcome, thanks once again. Changing a layout currently is never taken into consideration, so you have that kind of behavior. I'll keep this open, to remember to improve the whole algorithm!

A question for you: how much do you believe it is important to support such layout changes? Thanks once again!

thyttan commented 1 week ago

how much do you believe it is important to support such layout

It's something that would be really nice to see handled eventually. Not as important as e.g. #157 was 😇