ianyh / Amethyst

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

Focus folls mouse buggy in 'Wide' layout #1494

Open andy-cowley opened 1 year ago

andy-cowley commented 1 year ago

Describe the bug When I have windows positioned vertically, such as in wide view, focus snaps to lower window when mouse is about a third of the way down the upper window

Applications: All

To Reproduce Arrange apps vertically (wide view)

Expected behavior Focus only snaps to window when mouse is actually over it

Screenshots N/A

Versions:

Debug Info

Version: 0.19.0 (103)

OS version: Version 13.3.1 (Build 22E261)

Screens:
        (0.0, 0.0, 2560.0, 1440.0) [(0.0, 0.0, 2560.0, 1440.0)]
        (2560.0, 112.0, 1800.0, 1169.0) [(2560.0, 159.0, 1800.0, 1169.0)]
        (-1440.0, -720.0, 1440.0, 2560.0) [(-1440.0, -400.0, 1440.0, 2560.0)]

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

Manageable applications:
        Firefox (org.mozilla.firefox)
        Alacritty (org.alacritty)
        Slack (com.tinyspeck.slackmacgap)
        Microsoft Teams (com.microsoft.teams)
        Finder (com.apple.finder)
        Obsidian (md.obsidian)
        Spotify (com.spotify.client)
        zoom.us (us.zoom.xos)
        Postman (com.postmanlabs.mac)

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

Additional context N/A

andy-cowley commented 1 year ago

Also, just install 0.20.0b and the issue is also in that build

alexgenaud commented 1 year ago

(1) toggle-focus-follow-mouse works for me via config file. (2) "Focus follows mouse" does not work configured by GUI (though the selection check-unchecks) (3) My experience is the same in all layouts.

When configured via file (~/.amethyst.yml), toggle-focus-follows-mouse seems to work (although I cannot config space/desktop throwing via file).

When the config file is removed and shortcuts configured via GUI only, "Focus follows mouse" does not work when set in the "Mouse" GUI tab, and the shortcut "Toggle focus follows mouse" (in my case ^os.) has no effect of focus. However, I can see that the check-selection does toggle check-uncheck in the "Mouse" tab when I do execute the keyboard shortcut (^os.) This behaviour is consistent for me in all layouts.