Skip to content

FocusGained / FocusLost events sometimes don't fire on mac #16

@ddickstein

Description

@ddickstein

On Mac OS Sierra in some cases the focus gained / lost events don't fire.

They successfully fire when:

  • I have 2 tmux panes open, one of which is running vim, and I am navigating back and forth between them. Entering the pane running vim triggers FocusGained, and exiting the pane triggers FocusLost.
  • I am running Vim in one window and I open a new tmux window (FocusLost) and then close it (FocusGained).

They fail to fire when:

  • I have only one tmux pane open and I create a new one. I move to the newly created pane but the FocusLost event for the previous pane running vim does not fire.
  • I have two tmux panes open, one of which is running vim, and I am in the other pane. If I close it I return to the pane running vim, but no FocusGained event triggers.

This problem does not seem to occur on Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions