Skip to content

Throwing Window to new space breaks Tall Tiling #1794

@pixelchai

Description

@pixelchai

Describe the bug
When we throw a window to a new space using the keyboard shortcut, and then throw another window to that same space using the keyboard shortcut again, tiling for that space (in tall mode) is broken, and positions are glitchy.

Applications:
Any/all applications

To Reproduce

  1. Open two different windows on desktop 1. E.g. a web browser and a terminal.
  2. Focus the terminal.
  3. Move the terminal to destop 2 using the keyboard shortcut
  4. Go back to desktop 1, using the keyboard shortcut (by default ^1)
  5. Move the remaining window on desktop 1, the web browser, to desktop 2 using the keyboard shortcut
  6. Switch to desktop 2 (by default ^2)

Expected behavior
We expect the windows on desktop 2 to be tiled -- each window taking half the space.
We expect to be able to resize either window with the mouse or via the keyboard shortcuts

Screenshots
Screen recording: https://www.youtube.com/watch?v=wOlawK28dcY

Screenshot of glitchy non-tiling:
Image

Versions:

  • macOS: macOS 15.5 24F74 arm64
  • Amethyst: 0.24.0 (124)

Debug Info

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info [--include-apps]
Version: 0.24.0 (124)

OS version: Version 15.5 (Build 24F74)

Screens:
	(0.0, 0.0, 1512.0, 982.0) [(0.0, 0.0, 1512.0, 982.0)]

Configuration:
screen-padding-left: 0
ignore-menu-bar: 0
mouse-follows-focus: 0
mouse-resizes-windows: 1
focus-follows-mouse: 0
enables-layout-hud-on-space-change: 0
restore-layouts-on-launch: 1
layouts: (
    "widescreen-tall",
    wide,
    fullscreen
)
debug-layout-info: 1
screen-padding-top: 0
new-windows-to-main: 0
mod2: (
    option,
    shift,
    control
)
mod1: (
    option,
    shift
)
floating-is-blacklist: 1
enables-layout-hud: 1
mouse-swaps-windows: 1
follow-space-thrown-windows: 1
window-margins: 0
window-max-count: 0
smart-window-margins: 0
floating: (
)
window-minimum-width: 0
screen-padding-bottom: 0
window-resize-step: 5
screen-padding-right: 0
window-minimum-height: 0
window-margin-size: 1
use-canary-build: 0
float-small-windows: 1

Note: --include-apps will list your manageable applications, but is optional if you don't want to list that.

Additional context

  • Same issue for Tall and Widescreen Tall modes
  • I noticed that once we are in the glitched state, doing the keyboard shortcut to 'decrease the number of main windows' makes tiling work again, but it's still glitchy: resizing windows (with mouse or by keyboard shortcuts) still does not work
  • Switching to wide mode, wide mode works as expected, but switching back to tall mode again after this, it is still broken
  • I am able to reproduce this consistently
  • The issue does not seem as common when you throw a window to another space when using native MacOS gestures (3 finger up to see your spaces, drag your window to another space), but still sometimes occurs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions