Skip to content

Navigation between X windows is surprising #279

@jruere

Description

@jruere

Hi! Thanks for this excellent improvement over Neovim!

The feature which caught my attention was the ability to move a vi window into an X window while still being part of the same session. Have been wanting to handle vi and X windows in a single way for a while!

Nevertheless, I encounter a very surprising behaviour. When a vi window is moved into an X window, I can navigate between them using the window manager (WM), but when I try to use the focused window, focus jumps to the one where vi would be "focused". Does this explanation make sense?

I'll give you an example.

  1. Start fvim on file 1.
  2. :sp file 2. Now there are two vi windows visible in one X window, and the vi focus is on file 2.
  3. Ctrl-w ge. Now there are two X windows, each with one vi window.
  4. With the WM, change focus to the X window which has file 1.
  5. When I type, I'd expect that input goes to file 1, but X window focus jumps to the X window with file 2, where the vi focus was.

Another thing I found surprising was that pressing Ctrl-ww changes the X window focus. I'd have expected for focus to switch between the windows within an X window, not among them.

Is this the intended behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions