treemacs icon indicating copy to clipboard operation
treemacs copied to clipboard

PGTK build of Emacs 29 has issues with mouse hover

Open Manueljlin opened this issue 2 years ago • 8 comments

emacs-version: GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2023-02-08

treemacs-version: [Treemacs] v3.0 (installed 2023.02.08) @ Emacs 29.0.60

For some reason, when using a PGTK build of Emacs 29, (only) the treemacs buffer updates the UI on mouse hover at like 5fps while Ivy, doom-modeline etc. update fine. I'll upload a video if I figure out the whole wayland and screen recording thing

Manueljlin avatar Feb 25 '23 23:02 Manueljlin

I'm having the same issue as well on Wayland. The mouse hover is not responsive at all, and it also happens for Emacs dashboard.

Yuanda-Dong avatar Mar 08 '23 11:03 Yuanda-Dong

Can confirm. Both dashboard and treemacs have slow hover on Wayland and a PGTK build of emacs. For some reason, the projects in treemacs do get highlighted instantly, but the folders and files do not.

tralph3 avatar Mar 29 '23 05:03 tralph3

Gotta be honest: I've no idea what to do here. Even if I could reproduce the problem (I don't even use wayland) I doubt I could find out what's causing it or how to find a fix. Treemacs doesn't do anything special - everything you see is just a bunch of text with a lot of text properties to tie thing together. That's also probably what treemacs has in common with the dashboard package. That or using images.

So you can try and see if buffers with many text properties have the same problem - a full org agenda should do the trick. For images just do (dotimes (_ 100) (insert (treemacs-get-icon-value "el") "\n")).

Of course both text properties and images are an integral parts of treemacs, so even if you identify either one as the cause of your symptoms my hands are still tied and it is up to the pgtk devs to bring their version of Emacs in line with vanilla.

If you can report this upstream, and maybe get someone from the pgtk to show up here, then I'll happily explain what's happening under the hood of treemacs and try out possible fixes, but the way things are now I can't do more than throw around wild guesses.

Alexander-Miller avatar Mar 29 '23 20:03 Alexander-Miller

I had run M-x treemacs-create-workspace and happened same problem, and also I find no the now workspace not been created. BTW, I use gentoo and doomemacs, the problem only show in PGTK. Here is my emacs's ebuild use: -X dynamic-loading gif gmp gsettings gtk harfbuzz imagemagick inotify jpeg json lcms libxml2 m17n-lib png sound sqlite ssl svg threads tiff toolkit-scroll-bars tree-sitter valgrind webp xft xpm xwidgets zlib If you need more info, pls ask me.


I find my bug is a exist bug.

xz-dev avatar May 27 '23 09:05 xz-dev

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Sep 03 '23 10:09 stale[bot]

Replying to poke stalebot. Still an issue, why close it?

The bot doesn't close issues, it only functions as a reminder.

Alexander-Miller avatar Sep 23 '23 10:09 Alexander-Miller

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

stale[bot] avatar Nov 23 '23 03:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

stale[bot] avatar Feb 26 '24 03:02 stale[bot]