Open skarndev opened 3 weeks ago
Please post your config file and version
[v0.15.2-Beta] I was in the process of writing one, but that's the last one where I observed the issue.
# Reference: https://github.com/i3/i3/blob/next/etc/config
# i3 doesn't have "normalizations" feature that why we disable them here.
# But the feature is very helpful.
# Normalizations eliminate all sorts of weird tree configurations that don't make sense.
# Give normalizations a chance and enable them back.
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true
automatically-unhide-macos-hidden-apps = false
# Mouse follows focus when focused monitor changes
on-focused-monitor-changed = []
on-focus-changed = "move-mouse window-lazy-center"
default-root-container-layout = 'tiles'
default-root-container-orientation = 'auto'
[gaps]
inner.horizontal = 8
inner.vertical = 8
outer.left = 8
outer.bottom = 8
outer.top = 0
outer.right = 8
[mode.main.binding]
# See: https://nikitabobko.github.io/AeroSpace/goodness#open-a-new-window-with-applescript
shift-ctrl-t = '''exec-and-forget open -a /Applications/iTerm.app '''
# Toggle borders
ctrl-shift-b = 'mode borders'
# i3 wraps focus by default
ctrl-a = 'focus --boundaries-action wrap-around-the-workspace left'
ctrl-s = 'focus --boundaries-action wrap-around-the-workspace down'
ctrl-w = 'focus --boundaries-action wrap-around-the-workspace up'
ctrl-d = 'focus --boundaries-action wrap-around-the-workspace right'
ctrl-shift-a = 'move left'
ctrl-shift-s = 'move down'
ctrl-shift-w = 'move up'
ctrl-shift-d = 'move right'
# Consider using 'join-with' command as a 'split' replacement if you want to enable normalizations
ctrl-cmd-a = 'join-with left'
ctrl-cmd-s = 'join-with down'
ctrl-cmd-w = 'join-with up'
ctrl-cmd-d = 'join-with right'
ctrl-f = 'fullscreen'
#alt-s = 'layout v_accordion' # 'layout stacking' in i3
#alt-w = 'layout h_accordion' # 'layout tabbed' in i3
alt-e = 'layout tiles horizontal vertical' # 'layout toggle split' in i3
alt-shift-space = 'layout floating tiling' # 'floating toggle' in i3
# Not supported, because this command is redundant in AeroSpace mental model.
# See: https://nikitabobko.github.io/AeroSpace/guide#floating-windows
#alt-space = 'focus toggle_tiling_floating'
# `focus parent`/`focus child` are not yet supported, and it's not clear whether they
# should be supported at all https://github.com/nikitabobko/AeroSpace/issues/5
# alt-a = 'focus parent'
alt-1 = 'workspace 1'
alt-2 = 'workspace 2'
alt-shift-1 = 'move-node-to-workspace 1'
alt-shift-2 = 'move-node-to-workspace 2'
alt-shift-c = 'reload-config'
alt-r = 'mode resize'
[mode.resize.binding]
h = 'resize width -50'
j = 'resize height +50'
k = 'resize height -50'∂ƒ
l = 'resize width +50'
enter = 'mode main'
esc = 'mode main'
[mode.borders.binding]
# enable borders
cmd-e = 'exec-and-forget borders active_color=0xFFFFFFFF inactive_color=0x00000000 width=8.0'
# disable borders
cmd-d = 'exec-and-forget borders active_color=0x00000000 inactive_color=0x00000000 width=8.0'
enter = 'mode main'
esc = 'mode main'
Description The mouse-follows-focus feature works fine on multi-monitor setups when navigating via keyboard. However, it makes moving windows with a mouse / trackpad to another screen totally impossible and explodes the entire workspace.
From the observed behavior it looks like, as soon as the moved window is reaching another screen, Aerospace somehow registers the focus changed event and tries to move the the mouse to the center of the window. Since the window is not yet placed on the monitor, its center is likely to be on another screen, thus, moving the mouse pointer back there and disrupting the drag before you have a chance to release the window.