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

Hover tooltips in full screen mode cause the current screen to switch #3748

Open
cch1 opened this issue Oct 20, 2024 · 5 comments
Open

Hover tooltips in full screen mode cause the current screen to switch #3748

cch1 opened this issue Oct 20, 2024 · 5 comments
Labels

Comments

@cch1
Copy link

cch1 commented Oct 20, 2024

On MacOS when in full-screen mode, mouse hover tooltips cause a switch to another desktop.

The problem does not happen when I'm not in full screen mode.

Expected behavior

The current screen should be stable and the tooltip should appear as a overlay.

Actual behavior

The screen briefly (< 1s) switches to another (new?) screen on which the tooltip is visible and immediately switches back to the emacs screen.

Steps to reproduce the problem

Enter full screen mode, with a window open on a Clojure buffer with CIDER enabled. Then hover on a symbol with tooltip (docstring) content.

Environment & Version information

MacOS 14.6.1 (Sonoma)

CIDER version information

;; Connected to nREPL server - nrepl://localhost:61555
;; CIDER 1.16.0 (Kherson), nREPL 1.3.0
;; Clojure 1.11.4, Java 17.0.8
;;     Docs: (doc function-name)
;;           (find-doc part-of-name)
;;   Source: (source function-name)
;;  Javadoc: (javadoc java-object-or-class)
;;     Exit: <C-c C-q>
;;  Results: Stored in vars *1, *2, *3, an exception in *e;
;;  Startup: /Users/cch1/.asdf/shims/clojure -A:nrepl -Sdeps \{\:deps\ \{nrepl/nrepl\ \{\:mvn/version\ \"1.3.0\"\}\ cider/cider-nrepl\ \{\:mvn/version\ \"0.50.2\"\}\}\ \:aliases\ \{\:cider/nrepl\ \{\:main-opts\ \[\"-m\"\ \"nrepl.cmdline\"\ \"--middleware\"\ \"\[cider.nrepl/cider-middleware\]\"\]\}\}\} -M:dev:morse:test:cider/nrepl

Lein / Clojure CLI version

Clojure CLI 1.11.1.1435

Emacs version

29.4

Operating system

MacOS 14.6.1 (Sonoma)

JDK distribution

java corretto-17.0.8.7.1

@rrudakov
Copy link
Contributor

I can reproduce it with emacs -q.

Setting (setopt tooltip-mode nil) in the init file is a workaround to fix the issue.

@bbatsov
Copy link
Member

bbatsov commented Oct 21, 2024

So that's some regression in Emacs 29.4?

@bbatsov bbatsov added the bug label Oct 21, 2024
@rrudakov
Copy link
Contributor

So that's some regression in Emacs 29.4?

Not sure when it's started, I use emacs 30 and I have tooltips turned off since forever :)

@rrudakov
Copy link
Contributor

Looks like it's an emacs bug. Can be reproduced by evaluating (tooptip-show "Hello").

Screen.Recording.2024-10-21.at.10.31.07.mov

@vespesa
Copy link

vespesa commented Oct 22, 2024

I noticed the same thing happening since #3725.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants