Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

Throwing window to another space/screen causes focus to shift

Open inspectorG4dget opened this issue 3 months ago • 0 comments

Describe the bug I'm going to use Firefox, Signal, and Finder as examples, but this issue applies to all applications.

I have five workspaces/desktops. Let's say I have Firefox and Signal in workspace1 and nothing in workspace2. Both workspaces are in "tall partitioning" in case it matters. I want to write a long message on signal, so I open it and realize that the window is narrow (due to the tall partitioning scheme). So I throw my Signal to workspace2. I'd like to continue writing my message at this point. However, my keystrokes now go to Finder, which was the active application in workspace2 before Signal was thrown there (this is because no windows were open in workspace2 - I did not have a Finder window open there).

The same problem is observed when throwing windows/applications the workspace on the left/right.

Applications: In my example, Firefox, Signal, Finder. However, this applies to all applications/windows.

To Reproduce

  1. Create two desktops/workspaces
  2. In workspace1, open a Firefox window and one window of any other application
  3. In workspace2, click on the desktop to bring Finder into focus
  4. Click on the open Firefox window to bring it to focus
  5. Keypress ctrl+opt+shift+2 to throw the Firefox to workspace2 (or use ctrl+opt+shift+rightArrow)
  6. Notice that you are now in workspace2 (as expected), but the focused application is Finder (not Firefox)

Expected behavior In Step 6 in the steps to reproduce, the focused application should be Firefox

Versions:

  • macOS: 14.4.1 (Sonoma), but also observed in previous versions
  • Amethyst: 0.20.0, but also observed in previous versions

Debug Info

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info [--include-apps]

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

Version: 0.20.0 (108)

OS version: Version 14.4.1 (Build 23E224)

Screens:
	(0.0, 0.0, 1792.0, 1120.0) [(0.0, 0.0, 1792.0, 1120.0)]

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

inspectorG4dget avatar May 03 '24 17:05 inspectorG4dget