Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues rotating panes when connected to mux-server #6397

Open
Kafva opened this issue Nov 14, 2024 · 0 comments
Open

Issues rotating panes when connected to mux-server #6397

Kafva opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Kafva
Copy link

Kafva commented Nov 14, 2024

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

The RotatePanes action does not rotate panes when connected to the mux server.

To Reproduce

Start the mux server and connect to it like this:

wezterm-mux-server &
wezterm connect persist

Then, create a split and trigger RotatePanes 'Clockwise'.

The panes appear to briefly switch positions and then move back to the original order, see video:

Screen.Recording.2024-11-14.at.06.33.52.mov

When doing the same thing without the mux-server the two panes switch positions as expected, see video:

Screen.Recording.2024-11-14.at.06.27.59.mov

Configuration

local wz = require 'wezterm'

CONFIG = wz.config_builder()

CONFIG.unix_domains = {
    {name = 'persist', connect_automatically = false}
}

CONFIG.keys = {
    {key='j', mods='CMD',           action=wz.action.RotatePanes 'Clockwise'},
    {key='k', mods='CMD',           action=wz.action.RotatePanes 'CounterClockwise'},
    {key="s", mods="CMD",           action=wz.action.SplitHorizontal},
    {key="-", mods="CMD",           action=wz.action.SplitVertical},
    {key='p', mods='CMD',           action=wz.action.PaneSelect{ mode = 'SwapWithActive' }},
    {key="q", mods="CTRL",          action=wz.action.ActivatePaneDirection "Next"},
}

return CONFIG

Expected Behavior

Calling RotatePanes when connected to the mux server results in the same behavior as when doing it when not connected to the mux server (i.e. the behavior in the second video).

Logs

No response

Anything else?

I also tried building from source (at 51c794a) and saw the same behavior, did not think it worth to try nightly as well.

@Kafva Kafva added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant