Skip to content

Fix: Properly clean up track-mouse when mouse tracking is disabled#796

Open
rytswd wants to merge 1 commit intoemacs-lsp:masterfrom
rytswd:track-mouse-cleanup
Open

Fix: Properly clean up track-mouse when mouse tracking is disabled#796
rytswd wants to merge 1 commit intoemacs-lsp:masterfrom
rytswd:track-mouse-cleanup

Conversation

@rytswd
Copy link

@rytswd rytswd commented Oct 30, 2025

When lsp-ui-doc-show-with-mouse is nil or when lsp-ui-doc-mode is disabled, track-mouse was not being cleared. This caused mouse movements to generate command events that would:

  • Hide the lsp-ui-doc popup unexpectedly (even when shown via glance)
  • Interrupt isearch causing it to exit

Fixes #795 :

  1. Clear track-mouse in lsp-ui-doc--setup-mouse when disabled
  2. Remove redundant track-mouse management from lsp-ui-doc--make-request
  3. Clean up track-mouse when mode is disabled

  When lsp-ui-doc-show-with-mouse is nil or when lsp-ui-doc-mode is
  disabled, track-mouse was not being cleared. This caused mouse
  movements to generate command events that would:
  - Hide the lsp-ui-doc popup unexpectedly (even when shown via glance)
  - Interrupt isearch causing it to exit

  Fixes:
  1. Clear track-mouse in lsp-ui-doc--setup-mouse when disabled
  2. Remove redundant track-mouse management from lsp-ui-doc--make-request
  3. Clean up track-mouse when mode is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mouse movement invokes commands and lsp-ui-doc popup disappears

1 participant