Skip to content

[BUG] Move window to left/right tile doesn't work when a window was maximized with or without outer gaps #220

@thyttan

Description

@thyttan

Describe the bug
Move window to left tile or Move window to right tile keybindings don't do anything when a window was maximized. The same happens if the window was made to occupy the whole desktop with gaps around by dragging to the top screen edge (Drag against top edge to maximize window toggled off).

Additionally, for the second case it's not possible to "go back" by doing Move window to tile below like is possible when the window is fully maximized without outer gaps.

To Reproduce
Steps to reproduce the behavior:

  1. Do Move window to tile above keybinding until the window is maximized.
  2. Do Move window to left tile keybinding and notice nothing happens.
  3. Do Move window to right tile keybinding and notice nothing happens.
  4. Do Move window to tile below and notice the window is returned to its previous position.
  5. Drag the window with the mouse pointer to top screen edge, filling the desktop area with outer gaps (Drag against top edge to maximize window toggled off).
  6. Do Move window to left tile keybinding and notice nothing happens.
  7. Do Move window to right tile keybinding and notice nothing happens.
  8. Do Move window to tile below keybinding and notice nothing happens.

Expected behavior

  • Move window to left tile should move the window to the top left layout position.
  • Move window to right tile should move the window to the top right layout position.
  • Move window to tile below should restore the window to where it was before being maximized (fully or with outer gaps).

Screencast

Screencast.From.2024-12-10.23-09-45.mp4

Information:

  • Tiling Shell version: 15.1
  • GNOME version: 47.1
  • Fedora Linux 41 (Worksation edition)

Additional context
If it helps, this is similar to what happend on #59.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions