Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

moving focus jumps on other screen when a same app is on both screens.

Open OsKaR31415 opened this issue 3 years ago • 4 comments

Describe the bug When using multiple screens, and having an app with a window opened on both screens, when i try to switch to that app on my main screen, the focus goes to the app, but to the window on the other screen.

Applications: I have the bug mainly with firefox.

To Reproduce open two windows of firefox, one on each of two screens, then try to go through all windows in one of the screens (in my case it is the main screen). Once you are on firefox, amethyst puts the focus on the other screen's firefox window.

Expected behavior Amethyst should not change screen, but put the focus on the window of firefox that is on the current screen.

Versions:

  • macOS: BigSur
  • Amethyst: 0.15.5

Debug Info

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info
Version: 0.15.5 (92)

OS version: Version 11.2.3 (Build 20D91)

Screens:
        (0.0, 0.0, 1920.0, 1080.0) [(0.0, 0.0, 1920.0, 1080.0)]
        (244.0, -900.0, 1440.0, 900.0) [(244.0, 1080.0, 1440.0, 900.0)]

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

OsKaR31415 avatar Dec 30 '21 22:12 OsKaR31415

I have the Displays have separate Spaces option enabled in the Mission Control settings menu and having the same problem. This is making windows switch functionality unusable with using keyboard shortcuts.

alimg avatar Jan 14 '22 13:01 alimg

When using multiple screens, and having an app with a window opened on both screens, when i try to switch to that app on my main screen, the focus goes to the app, but to the window on the other screen.

What does "switch to that app" mean? With cmd+tab?

max-sixty avatar Mar 26 '22 18:03 max-sixty

Just wanted to mention that I thought I was having the issue mentioned here, but what fixed it for me was unchecking the option "Focus follows mouse" under Preferences > Mouse.

dylankb avatar Mar 26 '22 23:03 dylankb

@dylankb I see this even with focus-follows-mouse: 0. In my case, Chrome is the app I see this with.

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info
Version: 0.16.0 (94)

OS version: Version 12.4 (Build 21F79)

Screens:
	(0.0, 0.0, 1792.0, 1120.0) [(0.0, 0.0, 1792.0, 1120.0)]
	(1792.0, -209.0, 2560.0, 1440.0) [(1792.0, -111.0, 2560.0, 1440.0)]
	(4352.0, -475.0, 1080.0, 1920.0) [(4352.0, -325.0, 1080.0, 1920.0)]

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

telotortium avatar Jun 28 '22 22:06 telotortium