Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

New windows are laid out according to the desktop of the process that spawned them, not the desktop they are launched on

Open dustin-cowles opened this issue 2 years ago • 0 comments

Describe the bug When spawning a window on a desktop with one layout (e.g. Tall) and due to macOS Desktop Assignment, the spawned window is opened on a different desktop with a different layout (e.g. Float), the window opens on the other desktop but sized and positioned according to the desktop from which it was spawned.

Applications: I have observed this mostly with Finder windows, but I imagine it would happen with others. When picking the "show in finder" option from Chrome, the Finder window is launched in another Desktop but resized to the layout of the desktop where Chrome was.

To Reproduce Have two desktops Configure desktop 1 to Tall Configure desktop 2 with Float layout

Assign Finder to desktop 2 (Right click Finder icon in Dock > Options > Assign To) Open a new Finder window and confirm it opens on desktop 2 Resize the Finder window to a reasonable floating size and then close the window

Open Chrome on desktop 1 In Chrome, download a file and in the bottom banner click the arrow next to the file and select "Show in Finder"

Observe that the finder window opens on desktop 2, but is resized to fill the right half as if it were in Tall layout alongside Chrome on desktop 1

Expected behavior The Finder window should spawn at its previous size and position on desktop 2

Screenshots If applicable, add screenshots to help explain your problem.

Versions:

  • macOS: 12.4
  • Amethyst: 0.15.6 (93)

Debug Info

$ Version: 0.15.6 (93)

OS version: Version 12.4 (Build 21F79)

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

Configuration:
floating: (
        {
        id = "com.agilebits.onepassword7";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.Music";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.PhotoBooth";
        "window-titles" =         (
        );
    },
        {
        id = "com.postmanlabs.mac";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.Notes";
        "window-titles" =         (
        );
    },
        {
        id = "com.docker.docker";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.MobileSMS";
        "window-titles" =         (
        );
    },
        {
        id = "com.amethyst.Amethyst";
        "window-titles" =         (
        );
    },
        {
        id = "com.cisco.anyconnect.gui";
        "window-titles" =         (
        );
    },
        {
        id = "com.cisco.anyconnect.macos.acsock";
        "window-titles" =         (
        );
    },
        {
        id = "com.sentinelone.extensions-wrapper";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.ActivityMonitor";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.VoiceOverUtility";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.calculator";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.FaceTime";
        "window-titles" =         (
        );
    }
)
float-small-windows: 1
new-windows-to-main: 0
window-minimum-height: 0
mouse-follows-focus: 0
screen-padding-top: 0
enables-layout-hud-on-space-change: 0
use-canary-build: 0
debug-layout-info: 0
focus-follows-mouse: 0
screen-padding-right: 0
window-margins: 0
mod2: (
    option,
    shift,
    control
)
window-minimum-width: 0
ignore-menu-bar: 0
floating-is-blacklist: 1
screen-padding-left: 0
layouts: (
    tall,
    floating
)
mod1: (
    option,
    shift
)
window-margin-size: 0
enables-layout-hud: 1
window-resize-step: 5
screen-padding-bottom: 0
follow-space-thrown-windows: 1
restore-layouts-on-launch: 1

Additional context I really hope this is possible, but I worry that perhaps the way macOS handles launching windows the Finder window is in fact launched alongside Chrome then quickly moved to the assigned desktop.

dustin-cowles avatar Jun 29 '22 15:06 dustin-cowles