ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.68k stars 487 forks source link

Moving windows to adjacent spaces fails when any window is fullscreen. #1660

Open nahoskins opened 4 months ago

nahoskins commented 4 months ago

Describe the bug When attempting to move windows to adjacent spaces using Amethyst, the operation fails if any window is currently in fullscreen mode. This issue disrupts the expected behavior of managing window layouts effectively.

Applications: Amethyst

To Reproduce Steps to reproduce the behavior:

1.  Open any application and set it to fullscreen mode.
2.  Attempt to move a different window to an adjacent space using Amethyst.
3.  Observe that the window movement fails or does not behave as expected.

Expected behavior When a window is moved to an adjacent space, it should move to the specified space regardless of the fullscreen status of other windows.

Screenshots (Attach screenshots here if applicable)

Versions:

Debug Info

Version: 0.21.1 (111)

OS version: Version 14.5 (Build 23F79)

Screens:
    (0.0, 0.0, 2056.0, 1329.0) [(0.0, 0.0, 2056.0, 1329.0)]
    (2056.0, 362.0, 3360.0, 1890.0) [(2056.0, -923.0, 3360.0, 1890.0)]

Configuration:
screen-padding-right: 0
screen-padding-top: 0
floating: (
        {
        id = "com.apple.Stickies";
        "window-titles" =         (
        );
    }
)
mod1: (
    option,
    shift
)
mod2: (
    option,
    shift,
    control
)
window-resize-step: 5
enables-layout-hud: 1
use-canary-build: 0
window-margins: 0
focus-follows-mouse: 0
window-minimum-height: 0
debug-layout-info: 0
screen-padding-bottom: 0
follow-space-thrown-windows: 1
enables-layout-hud-on-space-change: 0
floating-is-blacklist: 1
restore-layouts-on-launch: 1
window-max-count: 0
new-windows-to-main: 0
float-small-windows: 0
window-margin-size: 0
window-minimum-width: 0
screen-padding-left: 0
ignore-menu-bar: 0
layouts: (
    tall,
    wide,
    fullscreen,
    column,
    "middle-wide",
    "3column-right",
    "3column-left",
    bsp,
    "widescreen-tall"
)
mouse-follows-focus: 1

Additional context Add any other context about the problem here.

It appears in my case that fullscreened apps, on my primary display, cause the issue, whereas full screen apps on the secondary display do NOT cause the issue.

lukashr commented 4 months ago

Hi, i try to clarify the previous post from #1655. I can get Amethyst to throw window to adjacent space with app in native fullscreen mode. But its depedant on position in "Mission Control" preview window.

By throwing I mean between Desktop 1 and Desktop 2. I have never used the native split screen stuff. I didn't even know MacOS could do that. :D

image In this case, throwing does not work.

image In this case, no problem.

image In this case, throwing from Desktop 1 to 2 works. But 2 to 1 does not.

Safari is in native full screen mode.

I hope this helps someone find the cause. If it helps, I can get some logs from Amethyst with some guidance, as I can replicate this bug consistently.

M1 cpu, macos 14.5, Amethyst 0.21.1 installed from homebrew

nahoskins commented 4 months ago

For ease of communication: A: image

B: image

C: image