ianyh / Amethyst

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

After the latest upgrade the `focus follows mouse` feature is enabled by default, and makes multi-monitor setup non-usable? #995

Open viktor-yunenko opened 4 years ago

viktor-yunenko commented 4 years ago

To Reproduce

It would be nice to at least disable that feature by default. Took me a while to guess that I can't work with Chrome anymore because Amethyst requested an upgrade 5 minutes ago :)

Versions:

Debug Info

``` Version: 0.15.2 (87) OS version: Version 10.15.3 (Build 19D76) Has permissions: true Screens: (0.0, 0.0, 2560.0, 1440.0) [(0.0, 0.0, 2560.0, 1440.0)] (-1920.0, -840.0, 1920.0, 1200.0) [(-1920.0, 1080.0, 1920.0, 1200.0)] (-1920.0, 360.0, 1920.0, 1080.0) [(-1920.0, 0.0, 1920.0, 1080.0)] (2560.0, 360.0, 1920.0, 1080.0) [(2560.0, 0.0, 1920.0, 1080.0)] Manageable applications: ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary) Podcasts (com.apple.podcasts) Control Strip (com.apple.controlstrip) AppSSOAgent (com.apple.AppSSOAgent) UIKitSystem (com.apple.UIKitSystemApp) talagent (com.apple.talagent) ServicesUIAgent (com.apple.ServicesUIAgent) ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary) QuickLookUIService (Finder) (com.apple.quicklook.QuickLookUIService) Finder (com.apple.finder) Simulator (com.apple.CoreSimulator.SimulatorTrampoline) com.apple.CoreSimulator.CoreSimulatorService (com.apple.CoreSimulator.CoreSimulatorService) EmojiFunctionRowIM (com.apple.inputmethod.EmojiFunctionRowItem) 1Password 7 (com.agilebits.onepassword7) coreautha (com.apple.LocalAuthentication.UIAgent) storeuid (com.apple.storeuid) Google Chrome (com.google.Chrome) QuickTime Player (com.apple.QuickTimePlayerX) Slack (com.tinyspeck.slackmacgap) Telegram (ru.keepcoder.Telegram) iTerm2 (com.googlecode.iterm2) Instruments (com.apple.dt.Instruments) IntelliJ IDEA (com.jetbrains.intellij) TextMate (com.macromates.TextMate) Firefox (org.mozilla.firefox) Safari (com.apple.Safari) com.apple.Safari.SandboxBroker (Safari) (com.apple.Safari.SandboxBroker) TextEdit (com.apple.TextEdit) BTTRelaunch (com.hegenberg.BTTRelaunch) Mail (com.apple.mail) Preview (com.apple.Preview) DataDetectorsViewService (Preview) (com.apple.DataDetectorsViewService) com.apple.appkit.xpc.openAndSavePanelService (Google Chrome) (com.apple.appkit.xpc.openAndSavePanelService) QuickLookUIService (com.apple.appkit.xpc.openAndSavePanelService (Google Chrome)) (com.apple.quicklook.QuickLookUIService) Audio MIDI Setup (com.apple.audio.AudioMIDISetup) TeamSpeak 3 (com.teamspeak.TeamSpeak3) Calendar (com.apple.iCal) Configuration: new-windows-to-main: 0 screen-padding-left: 0 window-resize-step: 5 screen-padding-top: 0 mod1: ( option, shift ) window-margin-size: 0 floating-is-blacklist: 1 mod2: ( option, shift, control ) float-small-windows: 1 mouse-follows-focus: 0 window-margins: 0 screen-padding-bottom: 0 focus-follows-mouse: 0 floating: ( ) enables-layout-hud-on-space-change: 0 window-minimum-height: 0 ignore-menu-bar: 0 debug-layout-info: 0 follow-space-thrown-windows: 1 layouts: ( floating ) enables-layout-hud: 0 window-minimum-width: 0 use-canary-build: 0 restore-layouts-on-launch: 1 screen-padding-right: 0 ```
slaughtr commented 4 years ago

This also affects programs that rely on focus for other things - IE Chrome extensions, OS menus, etc. Broke a couple of things for me until I saw this issue.

ianyh commented 4 years ago

It is disabled by the default. In fact, based on your debug info you have it disabled. Not sure why it’s happening with multiple monitors. I haven’t been at my multi-monitor office setup in a while so I hadn’t noticed it. 😅

viktor-yunenko commented 4 years ago

Ah sorry about the debug info - I printed it out after I disabled this feature, it's rather hard to use use mouse once it's on.

By the way I also tried to enable it back just now - but it doesn't do anything, at all :)

Which sounds better than the last result though 😁

ryuheechul commented 4 years ago
Screenshot 2020-03-28 at 13 52 59

this happened to me with new updates as well. and usually with system mac preference windows cursor stuck at the center of that window and wherever I try to move my cursor it automatically snaps back to the center of window makes it hard to figure what's going on.

Screenshot 2020-03-28 at 13 56 49

☝🏼one of the windows that be affected by this.

Screenshot 2020-03-28 at 13 58 10

☝🏼even emoji selector gets affected by this.


One way to escape this situation was to move to another screen that has no windows. And to test it's the Amethyst, I quit the app and go to same window and now problem. And when I launch it back on and go to the same window. It starts all over.


And I simply unchecked Focus follows mouse to deal with the issue for me.

ianyh commented 4 years ago

@ryuheechul it looks like your issue is that focus follows mouse and mouse follows focus are kind of mutually exclusive. The original issue here seems different based on the descriptions.

ryuheechul commented 4 years ago

@Ianyh I know that's the issue. But I didn't set that myself and it seems that this change of value in the setting has come with the recent update as the the title of this issue point out.

joeblackwaslike commented 3 years ago

I too have experienced this problem. I was able to disable amethyst and the mouse cursor jumping and getting trapped problem persisted until I also quit amethyst. While it was not running, I ran the debug-info command and this was the result.

➜ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info
Version: 0.15.4 (91)

OS version: Version 10.15.7 (Build 19H524)

Has permissions: false

Screens:
    (0.0, 0.0, 3200.0, 1800.0) [(0.0, 0.0, 3200.0, 1800.0)]
    (3200.0, 0.0, 3200.0, 1800.0) [(3200.0, 0.0, 3200.0, 1800.0)]

Manageable applications:
    Activity Monitor (com.apple.ActivityMonitor)
    talagent (com.apple.talagent)
    Finder (com.apple.finder)
    AppSSOAgent (com.apple.AppSSOAgent)
    Viscosity (com.viscosityvpn.Viscosity)
    1Password 7 (com.agilebits.onepassword7)
    Messages (com.apple.iChat)
    Brave Browser (com.brave.Browser)
    iTerm2 (com.googlecode.iterm2)

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

I've been using amethyst for a very long time and I'm certain I never and would never enable mouse-follows-focus or focus-follows-mouse, let alone both of them. I too also have two monitors, not sure if that's related but seems to be for someone else. It's worth mentioning that when both of these are enabled it's intensely infuriating when you don't know what's causing it. 😅. I don't often scream out loud, but this one really got to me this morning 😂