ianyh / Amethyst

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

Two Pane mode does not work for vertical screens #1514

Open slkmikhail opened 1 year ago

slkmikhail commented 1 year ago

Describe the bug I have a vertical monitor. I cannot use Two Pane mode because it leads to align widows like in Fullscreen mode instantly. Besides that, when I try to resize windows Amethyst aligns any windows in fullscreen.

Applications: all

To Reproduce Rotate a screen to vertical mode (90\270 degrees)

Expected behavior Two pane works

Versions:

Debug Info

Version: 0.20.0b3 (106)

OS version: Version 13.4 (Build 22F66)

Screens:
    (0.0, 0.0, 2048.0, 2304.0) [(0.0, 0.0, 2048.0, 2304.0)]
    (-1728.0, 664.0, 1728.0, 1117.0) [(-1728.0, 523.0, 1728.0, 1117.0)]

Configuration:
mod2: (
    option,
    shift,
    control
)
screen-padding-left: 0
disable-padding-on-builtin-display: 0
window-max-count: 0
focus-follows-mouse: 0
window-minimum-width: 0
window-margin-size: 0
screen-padding-top: 0
debug-layout-info: 1
enables-layout-hud-on-space-change: 0
screen-padding-bottom: 0
floating: (
        {
        id = "io.github.openconnect.openconnect-gui";
        "window-titles" =         (
        );
    },
        {
        id = "com.logitech.Logi-Options";
        "window-titles" =         (
        );
    },
        {
        id = "app.soulver.mac";
        "window-titles" =         (
        );
    },
        {
        id = "com.Eltima.ElmediaPlayer";
        "window-titles" =         (
        );
    },
        {
        id = "com.parallels.desktop.console";
        "window-titles" =         (
            "^Control Center"
        );
    },
        {
        id = "com.valvesoftware.steam";
        "window-titles" =         (
        );
    },
        {
        id = "com.dmitrynikolaev.numi";
        "window-titles" =         (
        );
    },
        {
        id = "com.jetbrains.intellij";
        "window-titles" =         (
            "^Create New Branch",
            "^Pull to",
            "^Add File to Git",
            "^New JModel",
            "^Rename Branch",
            "^Rename Class",
            "^Rename Constructor",
            "^Rename Method"
        );
    },
        {
        id = "com.microsoft.Excel";
        "window-titles" =         (
            "^Find & Replace"
        );
    },
        {
        id = "com.apple.systempreferences";
        "window-titles" =         (
        );
    }
)
mouse-resizes-windows: 1
floating-is-blacklist: 1
window-margins: 0
enables-layout-hud: 1
mouse-follows-focus: 0
window-minimum-height: 0
use-canary-build: 1
follow-space-thrown-windows: 1
ignore-menu-bar: 0
screen-padding-right: 0
window-resize-step: 1
restore-layouts-on-launch: 1
layouts: (
    floating,
    fullscreen,

Additional context When I try debugging I noticed that rawRatio is always ~0.99999999 for vertical screens.

niravjdn commented 2 months ago

Same issue still in latest Mac OS Sonoma. 14.6.1