Skip to content

Mouse hover popups appear over modal dialogs (Open File, command palette) #2912

Description

@maxco1d

Description

While a modal dialog is open (Open File / command palette), moving the
mouse over the dialog area still triggers LSP hover requests for the
editor buffer behind it. Hover popups render on top of the dialog.

The popups update as the pointer moves, so these are live requests, not
a stale popup left over from before the dialog opened.

The buffer position also doesn't correspond to what's visually under the
pointer — the popups describe symbols that are scrolled out of view.

Related

Possibly the same class as #2244 (hover popups over the LSP status popup),
fixed in 0.3.12 — but that fix appears specific to the LSP status popup
rather than modals in general. The Open File dialog still leaks.

May relate to the #692 flicker fix, where hover only dismisses when the
mouse leaves the editor area entirely — a dialog drawn over that area
wouldn't trigger dismissal.

Steps to reproduce

  1. Open a C file with an LSP server attached (clangd).
  2. Press Ctrl+O to open the Open File dialog.
  3. Move the mouse over the dialog area.
  4. Hover popups appear for symbols in the buffer behind the dialog.

Expected

No hover requests while a modal dialog has focus.

Actual

Hover popups appear over the dialog and update as the mouse moves.

Workaround

Disable editor.mouse_hover_enabled.

Environment

  • fresh 0.4.6
  • macOS 26.6 (25G72) (Apple Silicon), iTerm2
  • Keymap: macos
  • LSP: clangd
Image Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions