cider icon indicating copy to clipboard operation
cider copied to clipboard

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

Open cch1 opened this issue 1 year ago • 14 comments

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

cch1 avatar Oct 20 '24 22:10 cch1

I can reproduce it with emacs -q.

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

rrudakov avatar Oct 21 '24 08:10 rrudakov

So that's some regression in Emacs 29.4?

bbatsov avatar Oct 21 '24 08:10 bbatsov

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 avatar Oct 21 '24 08:10 rrudakov

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

https://github.com/user-attachments/assets/cef65c73-201e-43b6-9a41-5d0aceb23df3

rrudakov avatar Oct 21 '24 08:10 rrudakov

I noticed the same thing happening since #3725.

vespesa avatar Oct 22 '24 11:10 vespesa

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding!

github-actions[bot] avatar Jan 19 '25 02:01 github-actions[bot]

This problem is still happening for me with emacs 29.4 (latest brew cask install) and cider 1.16.1.

cch1 avatar Jan 20 '25 15:01 cch1

I'm having the same issue; (tooltip-show "Hello") only opens up a new frame for me if cider-mode is enabled in a window. If I disable cider-mode, the issue goes away.

rvadhavk avatar Feb 01 '25 02:02 rvadhavk

I just updated to Emacs 30.1 using Brew and it's still happening.

dgr avatar Mar 01 '25 18:03 dgr

I disabled tooltips to prevent this behavior

(customize-set-variable 'cider-use-tooltips nil)

waffletower-reify avatar May 19 '25 16:05 waffletower-reify

Me too.

I disabled tooltips to prevent this behavior

(customize-set-variable 'cider-use-tooltips nil)

cch1 avatar May 19 '25 17:05 cch1

I don't think this issue was ever reported to the Emacs bug tracker.

rrudakov avatar May 19 '25 17:05 rrudakov

I don't think this issue was ever reported to the Emacs bug tracker.

Any idea how to provoke that outcome?

cch1 avatar May 19 '25 17:05 cch1

I don't think this issue was ever reported to the Emacs bug tracker.

Any idea how to provoke that outcome?

M-x report-emacs-bug is the simplest way to do that. It's also possible to just send an email directly to [email protected]

rrudakov avatar May 19 '25 17:05 rrudakov