unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil
@ 2021-12-21 15:27 Aleksandr Vityazev
  2021-12-22 14:37 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Aleksandr Vityazev @ 2021-12-21 15:27 UTC (permalink / raw)
  To: 52705

Hello,

Emacs is built from this commit -
264589cdf762d015c8ecd102afb7eb61dc0ad65b.  Everything below is checked
in emacs -Q.

1. (setq x-gtk-use-system-tooltips nil).

2. Enter the vc-dir of the project (C-x p v).

3. When I move the mouse cursor over the stash tooltip area, there are
flashing popups containing only the background with no text, which
disappear after I stop moving the mouse.


In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
Windowing system distributor 'System Description: Artix Linux

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash
 SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash
 --prefix=/gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c
 --enable-fast-install --with-pgtk --without-libsystemd
 --with-native-compilation --with-native-compilation --with-modules
 --with-cairo --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LIBOTF LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: /home/akagi/.guix-home/profile/share/emacs/site-lisp:/gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Message

Minor modes in effect:
  gnus-message-citation-mode: t
  reverse-im-mode: t
  recentf-mode: t
  openwith-mode: t
  eros-mode: t
  highlight-indent-guides-mode: t
  hl-todo-mode: t
  diff-hl-mode: t
  pixel-scroll-mode: t
  fancy-battery-mode: t
  display-time-mode: t
  hes-mode: t
  global-so-long-mode: t
  savehist-mode: t
  save-place-mode: t
  minibuffer-depth-indicate-mode: t
  electric-pair-mode: t
  org-roam-db-autosync-mode: t
  prot-vc-git-setup-mode: t
  mml-mode: t
  company-posframe-mode: t
  global-company-mode: t
  company-mode: t
  av-compile-mode: t
  global-guix-prettify-mode: t
  guix-prettify-mode: t
  project-x-mode: t
  envrc-global-mode: t
  envrc-mode: t
  midnight-mode: t
  shell-dirtrack-mode: t
  global-auto-revert-mode: t
  marginalia-mode: t
  vertico-mode: t
  mood-line-mode: t
  override-global-mode: t
  fnhh-mode: t
  tooltip-mode: -1
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: message-do-auto-fill
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
/gnu/store/wff4kc9ksyd52q8zi2850h6zf35k2j4g-emacs-rrr-embark-0.12-6.e0057f6/share/emacs/site-lisp/rrr-embark-0.12-6.e0057f6/embark hides /gnu/store/wynxqkanibnfaymfnlr9c92h62468qys-emacs-embark-0.13/share/emacs/site-lisp/embark-0.13/embark
/gnu/store/wff4kc9ksyd52q8zi2850h6zf35k2j4g-emacs-rrr-embark-0.12-6.e0057f6/share/emacs/site-lisp/rrr-embark-0.12-6.e0057f6/embark-consult hides /gnu/store/wynxqkanibnfaymfnlr9c92h62468qys-emacs-embark-0.13/share/emacs/site-lisp/embark-0.13/embark-consult
/gnu/store/wff4kc9ksyd52q8zi2850h6zf35k2j4g-emacs-rrr-embark-0.12-6.e0057f6/share/emacs/site-lisp/rrr-embark-0.12-6.e0057f6/avy-embark-collect hides /gnu/store/wynxqkanibnfaymfnlr9c92h62468qys-emacs-embark-0.13/share/emacs/site-lisp/embark-0.13/avy-embark-collect
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-register hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-register
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-imenu hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-imenu
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-xref hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-xref
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-vertico hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-vertico
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-org hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-org
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-icomplete hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-icomplete
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-flymake hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-flymake
/gnu/store/17s2pwa986rv95z1difcd5wsv46gz2d3-emacs-rrr-consult-0.12-5.a8d8e83/share/emacs/site-lisp/rrr-consult-0.12-5.a8d8e83/consult-compile hides /gnu/store/aa4c504fbns0p8pm9p0jrvp4dx4kidyf-emacs-consult-0.13/share/emacs/site-lisp/consult-0.13/consult-compile
~/.local/projects/elisp/mine/info-ph-mode/info-ph hides /gnu/store/kark6cdzyrfnm93rn95ilvymh4h9i16x-emacs-rrr-info-ph-0.0.1-0.a867f98/share/emacs/site-lisp/rrr-info-ph-0.0.1-0.a867f98/info-ph
/gnu/store/2ylrf2nzbzr56ik0jcjzmsh41zgd384a-emacs-transient-0.3.7/share/emacs/site-lisp/transient-0.3.7/transient hides /gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/transient
/gnu/store/k724y3i0042a5r9h8yybr11g8fldn7va-emacs-auth-source-pass-5.0.0-2.847a1f5/share/emacs/site-lisp/auth-source-pass-5.0.0-2.847a1f5/auth-source-pass hides /gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/auth-source-pass
/gnu/store/6bhsdx526pnlns98w7qgfhbmnq8pd2rf-emacs-faceup-0.0.1-1.6c92dad/share/emacs/site-lisp/faceup-0.0.1-1.6c92dad/faceup hides /gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/emacs-lisp/faceup
/gnu/store/q18xl7ll9dwp18wyrzazxxz573kszc7y-emacs-let-alist-1.0.6/share/emacs/site-lisp/let-alist-1.0.6/let-alist hides /gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/emacs-lisp/let-alist
/gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/emacs-lisp/eieio-compat hides /gnu/store/vxj0ic9rswbyjkmvfrw0f0sba9j4rjlw-emacs-rrr-next-29.0.50-13.264589c/share/emacs/29.0.50/lisp/obsolete/eieio-compat

Features:
(shadow emacsbug log-view av-message tramp-cmds av-ace-window ace-window
sort smiley gnus-cite mail-extr gnus-async gnus-bcklg gnus-dup
gnus-draft gnus-ml gnus-topic cursor-sensor nndoc nndraft nnmh nnmaildir
network-stream nnfolder executable copyright nnnil gnus-agent gnus-srvr
gnus-score score-mode nnvirtual nntp gnus-cache guix-devel edit-indirect
guix-misc guix-ui guix-ui-messages bui bui-list bui-info bui-entry
bui-core bui-history bui-button vc-mtn vc-hg vc-bzr vc-src vc-sccs
vc-svn vc-cvs vc-rcs mule-util consult-imenu av-vc autoinsert av-x
av-comm smtpmail reverse-im quail embark-consult av-consult av-eww eww
url-queue mm-url ebdb-gnus gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig gnus-sum shr pixel-fill kinsoku svg dom gnus-group
gnus-undo gnus-start gnus-dbus gnus-cloud nnimap utf7 netrc nnoo
gnus-spec gnus-win gnutls nnmail gnus-int gnus-range mail-source gnus
nnheader consult-vertico consult av-recentf recentf tree-widget bookmark
openwith ebdb-message sendmail ebdb-mua ebdb-com crm ebdb-format ebdb
eieio-opt speedbar ezimage dframe timezone cus-edit pp cus-start
cus-load wid-edit company-elisp package-lint-flymake package-lint
let-alist imenu finder finder-inf package av-browse-url embark-dtache
av-embark password-store auth-source-pass with-editor server embark avy
browse-url url-handlers highlight-defined eros nameless lisp-mnt
av-skempo skempo skeleton parent-mode mode-local av-company-elisp
hl-line highlight-indent-guides color hl-todo disp-table
page-break-lines diff-hl vc-dir ewoc flymake-guile flymake-proc flymake
av-flymake pixel-scroll fancy-battery battery dbus xml time
highlight-escape-sequences so-long savehist saveplace mb-depth elec-pair
av-org-faces org-roam-extra ucs-normalize org-roam-migrate org-roam-mode
org-roam-capture org-roam-node org-roam-db org-roam-utils
org-roam-compat org-roam org-capture org-element avl-tree org-id
org-habit av-org-agenda org-agenda org-refile org-tempo tempo ob-clojure
ob-scheme ob-ledger ob-latex ob-shell ob-C cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src
ob-comint org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol
org-keys oc org-compat org-macs org-loaddefs emacsql-sqlite url-http
url-auth url-gw nsm url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util emacsql emacsql-compiler
magit-section f s vc-git diff-mode prot-vc prot-common log-edit message
mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailheader pcvs-util add-log vc vc-dispatcher company-files
company-keywords company-dabbrev-code company-dabbrev company-capf
company-ebdb company-posframe posframe diminish company pcase av-compile
guix-prettify guix-auto-mode guix-read guix-help-vars guix-repl
guix-profiles guix-geiser guix-guile geiser-mode geiser-xref
macrostep-geiser geiser-guile info-look info geiser geiser-repl compile
text-property-search geiser-compile geiser-debug transient geiser-image
geiser-company geiser-doc geiser-menu geiser-edit etags fileloop
generator xref project-x project geiser-completion geiser-autodoc advice
geiser-eval geiser-connection tq geiser-syntax al-scheme scheme
geiser-log geiser-popup view geiser-impl help-fns radix-tree
geiser-custom geiser-base guix-external guix-utils bui-utils dash
guix-config guix-build-config guix epa-file epa derived epg rfc6068
epg-config appt diary-lib diary-loaddefs russian-holidays cal-menu
calendar cal-loaddefs ffap thingatpt url-parse url-vars envrc inheritenv
midnight dtache-shell marginalia-dtache dtache docker-tramp tramp-cache
tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat
shell pcomplete comint ansi-color ring parse-time iso8601 ls-lisp
format-spec auth-source password-cache json map autorevert filenotify
init saved-macros av-elisp nordrrr-theme smart-hungry-delete marginalia
orderless vertico-x vertico use-package-diminish mood-line async
find-func time-date comp comp-cstr warnings exec-path-from-shell edmacro
kmacro use-package-bind-key bind-key easy-mmode fnhh cl-extra help-mode
use-package-core rrr-daemons-autoloads rrr-org-roam-extra-autoloads
pg-autoloads finalize-autoloads emacsql-autoloads
emacsql-sqlite3-autoloads rrr-org-roam-autoloads
org-tree-slide-autoloads rrr-orglink-autoloads arduino-mode-autoloads
ede/auto eieio-base cl-seq eieio rrr-org-contrib-autoloads
posframe-autoloads company-posframe-autoloads company-reftex-autoloads
auctex-autoloads tex-site company-auctex-autoloads
company-math-autoloads company-ebdb-autoloads
eshell-prompt-extras-autoloads eshell-syntax-highlighting-autoloads
esh-help-autoloads eshell-toggle-autoloads diff-hl-autoloads
hl-todo-autoloads highlight-defined-autoloads
highlight-escape-sequences-autoloads highlight-indent-guides-autoloads
json-snatcher-autoloads undercover-autoloads json-reformat-autoloads
json-mode-autoloads rrr-docker-autoloads docker-compose-mode-autoloads
docker-tramp-autoloads dockerfile-mode-autoloads
flymake-shellcheck-autoloads rrr-flymake-guile-autoloads
rrr-flymake-kondor-autoloads package-lint-autoloads
parent-mode-autoloads skempo-autoloads rrr-git-timemachine-autoloads
rrr-git-email-autoloads libgit-autoloads rrr-magit-autoloads
magit-popup-autoloads geiser-guile-autoloads edit-indirect-autoloads
guix-autoloads rx rrr-aurel-autoloads rrr-pacman-autoloads kv-autoloads
esxml-autoloads nov-el-autoloads rrr-pdf-view-restore-autoloads
tablist-autoloads pdf-tools-autoloads synosaurus-autoloads
adaptive-wrap-autoloads wordnut-autoloads rrr-multitran-autoloads
debbugs-autoloads rrr-shikimori-autoloads deferred-autoloads
request-autoloads rrr-mastodon-autoloads rrr-youtube-dl-autoloads
rrr-ytel-autoloads ts-autoloads rrr-plz-autoloads rrr-ement-autoloads
rrr-seriestracker-autoloads rrr-htmlize-autoloads rrr-telega-x-autoloads
rrr-telega-contrib-autoloads rainbow-identifiers-autoloads
company-autoloads visual-fill-column-autoloads rrr-telega-autoloads
simple-httpd-autoloads rrr-oauth2-autoloads browse-at-remote-autoloads
elpher-autoloads link-hint-autoloads ace-window-autoloads
rrr-vertico-x-autoloads vertico-autoloads rrr-prot-pulse-autoloads
rrr-prot-vc-autoloads rrr-project-x-autoloads rrr-project-rg-autoloads
rrr-inflections-autoloads sesman-autoloads queue-autoloads epl-autoloads
pkg-info-autoloads parseclj-autoloads a-autoloads parseedn-autoloads
cider-autoloads clojure-mode-autoloads multiple-cursors-autoloads
paredit-autoloads yasnippet-autoloads rrr-clj-refactor-autoloads
rrr-anakondo-autoloads rrr-kibit-helper-autoloads rrr-info-ph-autoloads
rrr-info-colors-autoloads selectrum-autoloads flycheck-autoloads
consult-autoloads embark-autoloads rrr-dtache-autoloads bui-autoloads
rrr-cuirass-autoloads monroe-autoloads pos-tip-autoloads
faceup-autoloads racket-mode-autoloads markdown-mode-autoloads
exec-path-from-shell-autoloads transpose-frame-autoloads sly-autoloads
yaml-mode-autoloads markup-faces-autoloads adoc-mode-autoloads
emms-autoloads vterm-autoloads orderless-autoloads use-package-autoloads
gcmh-autoloads fancy-battery-autoloads expand-region-autoloads
smart-hungry-delete-autoloads transmission-autoloads diminish-autoloads
elisp-demos-autoloads eros-autoloads macrostep-autoloads
rrr-macrostep-geiser-autoloads transient-autoloads geiser-autoloads
move-text-autoloads page-break-lines-autoloads openwith-autoloads
olivetti-autoloads log4e-autoloads gntp-autoloads alert-autoloads
math-symbol-lists-autoloads scratch-el-autoloads parsebib-autoloads
hydra-autoloads ivy-autoloads let-alist-autoloads biblio-autoloads
ebib-autoloads marginalia-autoloads memoize-autoloads
all-the-icons-autoloads sudo-edit-autoloads rrr-nordrrr-autoloads
spinner-autoloads suggest-autoloads ledger-mode-autoloads
rrr-async-autoloads with-editor-autoloads auth-source-pass-autoloads
password-store-autoloads eimp-autoloads dired-hacks-autoloads
ebdb-autoloads eieio-core cl-macs eieio-loaddefs ibuffer-vc-autoloads
nameless-autoloads wgrep-autoloads rrr-rg-autoloads inheritenv-autoloads
envrc-autoloads ctable-autoloads rrr-try-autoloads
rrr-al-scheme-autoloads rrr-rmsbolt-autoloads rrr-keycast-autoloads
shut-up-autoloads loop-autoloads list-utils-autoloads cl-loaddefs cl-lib
s-autoloads f-autoloads elisp-refs-autoloads rrr-helpful-autoloads
rrr-mood-line-autoloads rrr-consult-dir-autoloads rrr-consult-autoloads
avy-autoloads rrr-embark-autoloads rrr-eglot-autoloads
rrr-reverse-im-autoloads ov-autoloads rrr-hide-lines-autoloads
rrr-syslog-mode-autoloads rrr-insert-kaomoji-autoloads
rrr-fnhh-autoloads rrr-russian-holidays-autoloads
rrr-sourcehut-autoloads av-autoloads pcmpl-args-autoloads srfi-autoloads
dash-autoloads haskell-mode-autoloads guix-emacs seq gv subr-x byte-opt
bytecomp byte-compile cconv early-init xdg iso-transl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit pgtk multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 792917 282040)
 (symbols 48 63299 35)
 (strings 32 200226 194621)
 (string-bytes 1 6884798)
 (vectors 16 113132)
 (vector-slots 8 1941153 69030)
 (floats 8 614 1543)
 (intervals 56 14470 647)
 (buffers 992 41))

-- 

Aleksandr Vityazev





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil
  2021-12-21 15:27 bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil Aleksandr Vityazev
@ 2021-12-22 14:37 ` Lars Ingebrigtsen
  2021-12-24  8:08   ` bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-22 14:37 UTC (permalink / raw)
  To: Aleksandr Vityazev; +Cc: 52705

Aleksandr Vityazev <avityazev@posteo.org> writes:

> Emacs is built from this commit -
> 264589cdf762d015c8ecd102afb7eb61dc0ad65b.  Everything below is checked
> in emacs -Q.
>
> 1. (setq x-gtk-use-system-tooltips nil).
>
> 2. Enter the vc-dir of the project (C-x p v).
>
> 3. When I move the mouse cursor over the stash tooltip area, there are
> flashing popups containing only the background with no text, which
> disappear after I stop moving the mouse.

I'm unable to reproduce this on Debian/bookworm -- the tooltips show up
with text, and don't disappear.

>  --enable-fast-install --with-pgtk --without-libsystemd

But I tested in a non-pgtk build, so I guess it's a pgtk issue.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is  nil in pgtk
  2021-12-22 14:37 ` Lars Ingebrigtsen
@ 2021-12-24  8:08   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-24  8:43     ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-24  8:08 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 52705, Aleksandr Vityazev

Lars Ingebrigtsen <larsi@gnus.org> writes:

> But I tested in a non-pgtk build, so I guess it's a pgtk issue.

I have a suspicion it's because how non-system tooltips are implemented
on PGTK is incompatible with how Wayland works as a matter of principle.

It should work fine on X without any issues, even in a PGTK build.

Aleksandr, are you using Wayland and if so, could you try again with
`GDK_BACKEND=x11' in your environment? Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24  8:08   ` bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-24  8:43     ` martin rudalics
  2021-12-24  9:35       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-24  8:43 UTC (permalink / raw)
  To: Po Lu, Lars Ingebrigtsen; +Cc: 52705, Aleksandr Vityazev

 > It should work fine on X without any issues, even in a PGTK build.

I see the behavior Aleksandr describes here with a GTK3 build on X.  The
empty tooltip frame pops up shortly at the top left corner of the
display regardless of where the proper Emacs frame is positioned.  I
suppose it's due to the usual delay induced by setting up the tooltip
frame's fonts.

With 'tooltip-reuse-hidden-frame' non-nil, the empty tooltip shows only
once but unfortunately the proper tooltip is not made invisible whenever
it is supposed to disappear (for some reason the check

	  && !FRAME_VISIBLE_P (XFRAME (tip_frame))))

on line 3204 of pgtkfns.c fails, telling that the tooltip is already
invisible although it is still visible).

martin





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24  8:43     ` martin rudalics
@ 2021-12-24  9:35       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-24 10:19         ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-24  9:35 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> I see the behavior Aleksandr describes here with a GTK3 build on X.  The
> empty tooltip frame pops up shortly at the top left corner of the
> display regardless of where the proper Emacs frame is positioned.  I
> suppose it's due to the usual delay induced by setting up the tooltip
> frame's fonts.
>
> With 'tooltip-reuse-hidden-frame' non-nil, the empty tooltip shows only
> once but unfortunately the proper tooltip is not made invisible whenever
> it is supposed to disappear (for some reason the check
>
> 	  && !FRAME_VISIBLE_P (XFRAME (tip_frame))))
>
> on line 3204 of pgtkfns.c fails, telling that the tooltip is already
> invisible although it is still visible).

Hmm, could you try putting SET_FRAME_VISIBLE (f, 1) after this line in
`x_create_tip_frame':

    gtk_window_set_attached_to (GTK_WINDOW (tip_window), FRAME_GTK_WIDGET (p));
    gtk_window_set_destroy_with_parent (GTK_WINDOW (tip_window), TRUE);
    gtk_window_set_decorated (GTK_WINDOW (tip_window), FALSE);
    gtk_window_set_type_hint (GTK_WINDOW (tip_window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
    f->output_data.pgtk->current_cursor = f->output_data.pgtk->text_cursor;
->  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));

The signal handler in `map_event' in pgtkterm.c should set the frame's
visibility, but it seems that for some reason it isn't being triggered,
even though we do set up event handling.

Thanks.






^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24  9:35       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-24 10:19         ` martin rudalics
  2021-12-24 10:38           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-24 10:19 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

 > Hmm, could you try putting SET_FRAME_VISIBLE (f, 1) after this line in
 > `x_create_tip_frame':
 >
 >      gtk_window_set_attached_to (GTK_WINDOW (tip_window), FRAME_GTK_WIDGET (p));
 >      gtk_window_set_destroy_with_parent (GTK_WINDOW (tip_window), TRUE);
 >      gtk_window_set_decorated (GTK_WINDOW (tip_window), FALSE);
 >      gtk_window_set_type_hint (GTK_WINDOW (tip_window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 >      f->output_data.pgtk->current_cursor = f->output_data.pgtk->text_cursor;
 > ->  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));
 >
 > The signal handler in `map_event' in pgtkterm.c should set the frame's
 > visibility, but it seems that for some reason it isn't being triggered,
 > even though we do set up event handling.

This has the effect that the tooltip becomes invisible forever after it
has been shown once.

Note all I do with emacs -Q is to evaluate

(progn
   (setq x-gtk-use-system-tooltips nil)
   (setq tooltip-reuse-hidden-frame t))

and move the mouse over the mode line.

martin





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24 10:19         ` martin rudalics
@ 2021-12-24 10:38           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-24 16:03             ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-24 10:38 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> This has the effect that the tooltip becomes invisible forever after it
> has been shown once.

Thanks, I'm beginning to understand the problem.

Try removing this part of `x_create_tip_frame' in pgtkfns.c:

  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));


And adding `gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (tip_f))' to
this part of x-show-tip in that file:

  /* Show tooltip frame.  */
  block_input ();
  gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), width, height);
  gtk_window_move (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), root_x, root_y);
  unblock_input ();

Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24 10:38           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-24 16:03             ` martin rudalics
  2021-12-25  0:30               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-24 16:03 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

 > Thanks, I'm beginning to understand the problem.
 >
 > Try removing this part of `x_create_tip_frame' in pgtkfns.c:
 >
 >    gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));
 >
 >
 > And adding `gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (tip_f))' to
 > this part of x-show-tip in that file:
 >
 >    /* Show tooltip frame.  */
 >    block_input ();
 >    gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), width, height);
 >    gtk_window_move (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), root_x, root_y);
 >    unblock_input ();

I did

diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index 8cea9a9270..93f460a606 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -2989,7 +2989,6 @@ x_create_tip_frame (struct pgtk_display_info *dpyinfo, Lisp_Object parms, struct
    gtk_window_set_decorated (GTK_WINDOW (tip_window), FALSE);
    gtk_window_set_type_hint (GTK_WINDOW (tip_window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
    f->output_data.pgtk->current_cursor = f->output_data.pgtk->text_cursor;
-  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f));
    gdk_window_set_cursor (gtk_widget_get_window (FRAME_GTK_OUTER_WIDGET (f)),
  			 f->output_data.pgtk->current_cursor);

@@ -3527,6 +3526,8 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0,
    block_input ();
    gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), width, height);
    gtk_window_move (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (tip_f)), root_x, root_y);
+  gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (tip_f));
+  SET_FRAME_VISIBLE (tip_f, 1);
    unblock_input ();

    pgtk_cr_update_surface_desired_size (tip_f, width, height, false);

and it seems to work flawlessly - the SET_FRAME_VISIBLE is utterly
needed here to make the check on line 3203 of pgtkfns.c succeed (or
better, fail).

More importantly, the initial phantom frame with a simple

(setq x-gtk-use-system-tooltips nil)

disappears so you can make Aleksandr happy ...

Unfortunately, I'm now getting

(emacs:2257): Gdk-CRITICAL **: 16:19:41.208: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed

(emacs:2257): Gdk-CRITICAL **: 16:19:41.231: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed

which I do not get without the patch.  Any ideas?

martin





^ permalink raw reply related	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-24 16:03             ` martin rudalics
@ 2021-12-25  0:30               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-25  9:17                 ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-25  0:30 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> More importantly, the initial phantom frame with a simple
>
> (setq x-gtk-use-system-tooltips nil)
>
> disappears so you can make Aleksandr happy ...
>
> Unfortunately, I'm now getting
>
> (emacs:2257): Gdk-CRITICAL **: 16:19:41.208: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
>
> (emacs:2257): Gdk-CRITICAL **: 16:19:41.231: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed
>
> which I do not get without the patch.  Any ideas?

I tried to fix those warnings on master.  Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-25  0:30               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-25  9:17                 ` martin rudalics
  2021-12-25  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-25  9:17 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

 > I tried to fix those warnings on master.  Thanks.

This one is still here:

(emacs:1348): Gdk-CRITICAL **: 09:25:18.556: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed

Also I noticed that native tooltip positions are (or can be?) off by a
couple of lines and their frames do not have any borders (which usually
are only on top and left here anyway).

BTW: I cannot toggle the tool bar from the menu bar.  If it's here
initially, it stays there.  If it's not here initially, I can't get it
back.

Thanks, martin





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-25  9:17                 ` martin rudalics
@ 2021-12-25  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-25 17:16                     ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-25  9:39 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> (emacs:1348): Gdk-CRITICAL **: 09:25:18.556: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed

That points to the tooltip's window not being realized when
`pgtk_begin_cr_clip' is called, which "can't happen".

Can you run Emacs inside a debugger with the environment containing
`G_DEBUG=fatal-criticals' and show a backtrace?

> BTW: I cannot toggle the tool bar from the menu bar.  If it's here
> initially, it stays there.  If it's not here initially, I can't get it
> back.

I will look into that later, thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-25  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-25 17:16                     ` martin rudalics
  2021-12-26  1:22                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-25 17:16 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

 >> (emacs:1348): Gdk-CRITICAL **: 09:25:18.556: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed
 >
 > That points to the tooltip's window not being realized when
 > `pgtk_begin_cr_clip' is called, which "can't happen".
 >
 > Can you run Emacs inside a debugger with the environment containing
 > `G_DEBUG=fatal-criticals' and show a backtrace?

(gdb) run -Q
Starting program: /home/martin/emacs-git/trunk/obj-pgtk/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3d54700 (LWP 1652)]
[New Thread 0x7ffff3220700 (LWP 1653)]
[New Thread 0x7ffff29f1700 (LWP 1654)]
[New Thread 0x7ffff2154700 (LWP 1655)]
[New Thread 0x7ffff1953700 (LWP 1656)]
[Thread 0x7ffff2154700 (LWP 1655) exited]

(emacs:1648): Gdk-CRITICAL **: 18:09:58.625: gdk_window_create_similar_surface: assertion 'GDK_IS_WINDOW (window)' failed

Thread 1 "emacs" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff730ec75 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0  0x00007ffff730ec75 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff730ff7d in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff731014f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7816089 in gdk_window_create_similar_surface ()
     at /lib/x86_64-linux-gnu/libgdk-3.so.0
#4  0x00000000007435a2 in pgtk_begin_cr_clip (f=0x1175b80)
     at ../../src/pgtkterm.c:6922
#5  0x0000000000733484 in fill_background_by_face
     (f=0x1175b80, face=0x106e410, x=0, y=0, width=724, height=2)
     at ../../src/pgtkterm.c:1237
#6  0x000000000073e0b1 in pgtk_clear_under_internal_border (f=0x1175b80)
     at ../../src/pgtkterm.c:4857
#7  0x0000000000557048 in xg_frame_set_char_size
     (f=0x1175b80, width=724, height=652) at ../../src/gtkutil.c:1111
#8  0x00000000007318bd in pgtk_set_window_size
     (f=0x1175b80, change_gravity=false, width=724, height=652)
     at ../../src/pgtkterm.c:546
#9  0x000000000042c185 in adjust_frame_size
     (f=0x1175b80, new_text_width=720, new_text_height=648, inhibit=0, pretend=true, parameter=XIL(0xe4f0)) at ../../src/frame.c:777
#10 0x000000000072b890 in x_create_tip_frame
     (dpyinfo=0xf603e0, parms=XIL(0xd51073), p=0xd79cf0)
     at ../../src/pgtkfns.c:2985
#11 0x000000000072ceef in Fx_show_tip
     (string=XIL(0x153c634), frame=XIL(0xd79cf5), parms=XIL(0xd517c3), timeout=make_fixnum(10), dx=make_fixnum(5), dy=make_fixnum(20)) at ../../src/pgtkfns.c:3378
#12 0x0000000000655d1b in funcall_subr
     (subr=0xc26b60 <Sx_show_tip>, numargs=6, args=0x7fffffffb948)
     at ../../src/eval.c:3169
#13 0x00000000006556c2 in Ffuncall (nargs=7, args=0x7fffffffb940)
     at ../../src/eval.c:3078
#14 0x00000000006b064c in exec_byte_code
     (bytestr=XIL(0x7ffff42c3b1c), vector=XIL(0x7ffff42c3355), maxdepth=make_fixnum(12), args_template=make_fixnum(513), nargs=2, args=0x7fffffffbec8)
     at ../../src/bytecode.c:632
#15 0x0000000000655e8a in fetch_and_exec_byte_code
     (fun=XIL(0x7ffff42c3325), syms_left=make_fixnum(513), nargs=2, args=0x7fffffffbeb8) at ../../src/eval.c:3202
#16 0x0000000000656310 in funcall_lambda
     (fun=XIL(0x7ffff42c3325), nargs=2, arg_vector=0x7fffffffbeb8)
     at ../../src/eval.c:3283
#17 0x0000000000655716 in Ffuncall (nargs=3, args=0x7fffffffbeb0)
     at ../../src/eval.c:3082
#18 0x00000000006b064c in exec_byte_code
     (bytestr=XIL(0x7ffff42c3d4c), vector=XIL(0x7ffff42c32cd), maxdepth=make_fixnum(4), args_template=make_fixnum(257), nargs=1, args=0x7fffffffc508)
     at ../../src/bytecode.c:632
#19 0x0000000000655e8a in fetch_and_exec_byte_code
     (fun=XIL(0x7ffff42c329d), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffc500) at ../../src/eval.c:3202
#20 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff42c329d), nargs=1, arg_vector=0x7fffffffc500) at ../../src/eval.c:3283
#21 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:3082
#22 0x0000000000654e52 in run_hook_with_args (nargs=2, args=0x7fffffffc4f8, funcall=0x655533 <Ffuncall>) at ../../src/eval.c:2896
#23 0x00000000006549da in Frun_hook_with_args_until_success (nargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:2782
#24 0x0000000000655afc in funcall_subr (subr=0xc20620 <Srun_hook_with_args_until_success>, numargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:3133
#25 0x00000000006556c2 in Ffuncall (nargs=3, args=0x7fffffffc4f0) at ../../src/eval.c:3078
#26 0x00000000006b064c in exec_byte_code (bytestr=XIL(0x7ffff42c2af4), vector=XIL(0x7ffff42c289d), maxdepth=make_fixnum(4), args_template=make_fixnum(257), nargs=1, args=0x7fffffffcb68) at ../../src/bytecode.c:632
#27 0x0000000000655e8a in fetch_and_exec_byte_code (fun=XIL(0x7ffff42c286d), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffcb60) at ../../src/eval.c:3202
#28 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff42c286d), nargs=1, arg_vector=0x7fffffffcb60) at ../../src/eval.c:3283
#29 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffcb58) at ../../src/eval.c:3082
#30 0x0000000000654521 in Fapply (nargs=2, args=0x7fffffffcb58) at ../../src/eval.c:2665
#31 0x0000000000655afc in funcall_subr (subr=0xc20560 <Sapply>, numargs=2, args=0x7fffffffcb58) at ../../src/eval.c:3133
#32 0x00000000006556c2 in Ffuncall (nargs=3, args=0x7fffffffcb50) at ../../src/eval.c:3078
#33 0x00000000006b064c in exec_byte_code (bytestr=XIL(0x7ffff4797634), vector=XIL(0x7ffff47974e5), maxdepth=make_fixnum(10), args_template=make_fixnum(257), nargs=1, args=0x7fffffffd100) at ../../src/bytecode.c:632
#34 0x0000000000655e8a in fetch_and_exec_byte_code (fun=XIL(0x7ffff47974b5), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffd0f8) at ../../src/eval.c:3202
#35 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff47974b5), nargs=1, arg_vector=0x7fffffffd0f8) at ../../src/eval.c:3283
#36 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffd0f0) at ../../src/eval.c:3082
#37 0x0000000000654fdf in call1 (fn=XIL(0xe4c0), arg1=XIL(0x11731e5)) at ../../src/eval.c:2938
#38 0x000000000057d903 in timer_check_2 (timers=XIL(0xd516e3), idle_timers=XIL(0)) at ../../src/keyboard.c:4377
#39 0x000000000057da38 in timer_check () at ../../src/keyboard.c:4439
#40 0x000000000057bb28 in readable_events (flags=1) at ../../src/keyboard.c:3448
#41 0x00000000005849ff in get_input_pending (flags=1) at ../../src/keyboard.c:6973
#42 0x000000000058de90 in detect_input_pending_run_timers (do_display=true) at ../../src/keyboard.c:10503
#43 0x00000000006c2fd5 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at ../../src/process.c:5699
#44 0x00000000004273ad in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at ../../src/dispnew.c:6154
#45 0x00000000005793d6 in read_char (commandflag=1, map=XIL(0xd3a913), prev_event=XIL(0), used_mouse_menu=0x7fffffffdaef, end_time=0x0) at ../../src/keyboard.c:2801
#46 0x000000000058bf4d in read_key_sequence (keybuf=0x7fffffffdc80, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at ../../src/keyboard.c:9680
#47 0x0000000000574df0 in command_loop_1 () at ../../src/keyboard.c:1393
#48 0x0000000000651040 in internal_condition_case (bfun=0x574974 <command_loop_1>, handlers=XIL(0x90), hfun=0x573df6 <cmd_error>) at ../../src/eval.c:1492
#49 0x0000000000574559 in command_loop_2 (handlers=XIL(0x90)) at ../../src/keyboard.c:1134
#50 0x00000000006502c5 in internal_catch (tag=XIL(0xe7c0), func=0x574532 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1223
#51 0x00000000005744fd in command_loop () at ../../src/keyboard.c:1112
#52 0x00000000005738c1 in recursive_edit_1 () at ../../src/keyboard.c:721
#53 0x0000000000573ad5 in Frecursive_edit () at ../../src/keyboard.c:804
#54 0x000000000056f9bd in main (argc=2, argv=0x7fffffffe158) at ../../src/emacs.c:2422
[Thread 0x7ffff1953700 (LWP 1656) exited]

Lisp Backtrace:
"x-show-tip" (0xffffb948)
"tooltip-show" (0xffffbeb8)
"tooltip-help-tips" (0xffffc500)
"run-hook-with-args-until-success" (0xffffc4f8)
"tooltip-timeout" (0xffffcb60)
"apply" (0xffffcb58)
"timer-event-handler" (0xffffd0f8)
(gdb)

martin





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-25 17:16                     ` martin rudalics
@ 2021-12-26  1:22                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-26  8:25                         ` martin rudalics
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-26  1:22 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> (gdb) bt
> #0  0x00007ffff730ec75 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #1  0x00007ffff730ff7d in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2  0x00007ffff731014f in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3  0x00007ffff7816089 in gdk_window_create_similar_surface ()
>     at /lib/x86_64-linux-gnu/libgdk-3.so.0
> #4  0x00000000007435a2 in pgtk_begin_cr_clip (f=0x1175b80)
>     at ../../src/pgtkterm.c:6922
> #5  0x0000000000733484 in fill_background_by_face
>     (f=0x1175b80, face=0x106e410, x=0, y=0, width=724, height=2)
>     at ../../src/pgtkterm.c:1237
> #6  0x000000000073e0b1 in pgtk_clear_under_internal_border (f=0x1175b80)
>     at ../../src/pgtkterm.c:4857
> #7  0x0000000000557048 in xg_frame_set_char_size
>     (f=0x1175b80, width=724, height=652) at ../../src/gtkutil.c:1111
> #8  0x00000000007318bd in pgtk_set_window_size
>     (f=0x1175b80, change_gravity=false, width=724, height=652)
>     at ../../src/pgtkterm.c:546
> #9  0x000000000042c185 in adjust_frame_size
>     (f=0x1175b80, new_text_width=720, new_text_height=648, inhibit=0, pretend=true, parameter=XIL(0xe4f0)) at ../../src/frame.c:777
> #10 0x000000000072b890 in x_create_tip_frame
>     (dpyinfo=0xf603e0, parms=XIL(0xd51073), p=0xd79cf0)
>     at ../../src/pgtkfns.c:2985
> #11 0x000000000072ceef in Fx_show_tip
>     (string=XIL(0x153c634), frame=XIL(0xd79cf5), parms=XIL(0xd517c3), timeout=make_fixnum(10), dx=make_fixnum(5), dy=make_fixnum(20)) at ../../src/pgtkfns.c:3378
> #12 0x0000000000655d1b in funcall_subr
>     (subr=0xc26b60 <Sx_show_tip>, numargs=6, args=0x7fffffffb948)
>     at ../../src/eval.c:3169
> #13 0x00000000006556c2 in Ffuncall (nargs=7, args=0x7fffffffb940)
>     at ../../src/eval.c:3078
> #14 0x00000000006b064c in exec_byte_code
>     (bytestr=XIL(0x7ffff42c3b1c), vector=XIL(0x7ffff42c3355), maxdepth=make_fixnum(12), args_template=make_fixnum(513), nargs=2, args=0x7fffffffbec8)
>     at ../../src/bytecode.c:632
> #15 0x0000000000655e8a in fetch_and_exec_byte_code
>     (fun=XIL(0x7ffff42c3325), syms_left=make_fixnum(513), nargs=2, args=0x7fffffffbeb8) at ../../src/eval.c:3202
> #16 0x0000000000656310 in funcall_lambda
>     (fun=XIL(0x7ffff42c3325), nargs=2, arg_vector=0x7fffffffbeb8)
>     at ../../src/eval.c:3283
> #17 0x0000000000655716 in Ffuncall (nargs=3, args=0x7fffffffbeb0)
>     at ../../src/eval.c:3082
> #18 0x00000000006b064c in exec_byte_code
>     (bytestr=XIL(0x7ffff42c3d4c), vector=XIL(0x7ffff42c32cd), maxdepth=make_fixnum(4), args_template=make_fixnum(257), nargs=1, args=0x7fffffffc508)
>     at ../../src/bytecode.c:632
> #19 0x0000000000655e8a in fetch_and_exec_byte_code
>     (fun=XIL(0x7ffff42c329d), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffc500) at ../../src/eval.c:3202
> #20 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff42c329d), nargs=1, arg_vector=0x7fffffffc500) at ../../src/eval.c:3283
> #21 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:3082
> #22 0x0000000000654e52 in run_hook_with_args (nargs=2, args=0x7fffffffc4f8, funcall=0x655533 <Ffuncall>) at ../../src/eval.c:2896
> #23 0x00000000006549da in Frun_hook_with_args_until_success (nargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:2782
> #24 0x0000000000655afc in funcall_subr (subr=0xc20620 <Srun_hook_with_args_until_success>, numargs=2, args=0x7fffffffc4f8) at ../../src/eval.c:3133
> #25 0x00000000006556c2 in Ffuncall (nargs=3, args=0x7fffffffc4f0) at ../../src/eval.c:3078
> #26 0x00000000006b064c in exec_byte_code (bytestr=XIL(0x7ffff42c2af4), vector=XIL(0x7ffff42c289d), maxdepth=make_fixnum(4), args_template=make_fixnum(257), nargs=1, args=0x7fffffffcb68) at ../../src/bytecode.c:632
> #27 0x0000000000655e8a in fetch_and_exec_byte_code (fun=XIL(0x7ffff42c286d), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffcb60) at ../../src/eval.c:3202
> #28 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff42c286d), nargs=1, arg_vector=0x7fffffffcb60) at ../../src/eval.c:3283
> #29 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffcb58) at ../../src/eval.c:3082
> #30 0x0000000000654521 in Fapply (nargs=2, args=0x7fffffffcb58) at ../../src/eval.c:2665
> #31 0x0000000000655afc in funcall_subr (subr=0xc20560 <Sapply>, numargs=2, args=0x7fffffffcb58) at ../../src/eval.c:3133
> #32 0x00000000006556c2 in Ffuncall (nargs=3, args=0x7fffffffcb50) at ../../src/eval.c:3078
> #33 0x00000000006b064c in exec_byte_code (bytestr=XIL(0x7ffff4797634), vector=XIL(0x7ffff47974e5), maxdepth=make_fixnum(10), args_template=make_fixnum(257), nargs=1, args=0x7fffffffd100) at ../../src/bytecode.c:632
> #34 0x0000000000655e8a in fetch_and_exec_byte_code (fun=XIL(0x7ffff47974b5), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffd0f8) at ../../src/eval.c:3202
> #35 0x0000000000656310 in funcall_lambda (fun=XIL(0x7ffff47974b5), nargs=1, arg_vector=0x7fffffffd0f8) at ../../src/eval.c:3283
> #36 0x0000000000655716 in Ffuncall (nargs=2, args=0x7fffffffd0f0) at ../../src/eval.c:3082
> #37 0x0000000000654fdf in call1 (fn=XIL(0xe4c0), arg1=XIL(0x11731e5)) at ../../src/eval.c:2938
> #38 0x000000000057d903 in timer_check_2 (timers=XIL(0xd516e3), idle_timers=XIL(0)) at ../../src/keyboard.c:4377
> #39 0x000000000057da38 in timer_check () at ../../src/keyboard.c:4439
> #40 0x000000000057bb28 in readable_events (flags=1) at ../../src/keyboard.c:3448
> #41 0x00000000005849ff in get_input_pending (flags=1) at ../../src/keyboard.c:6973
> #42 0x000000000058de90 in detect_input_pending_run_timers (do_display=true) at ../../src/keyboard.c:10503
> #43 0x00000000006c2fd5 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at ../../src/process.c:5699
> #44 0x00000000004273ad in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at ../../src/dispnew.c:6154
> #45 0x00000000005793d6 in read_char (commandflag=1, map=XIL(0xd3a913), prev_event=XIL(0), used_mouse_menu=0x7fffffffdaef, end_time=0x0) at ../../src/keyboard.c:2801
> #46 0x000000000058bf4d in read_key_sequence (keybuf=0x7fffffffdc80, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at ../../src/keyboard.c:9680
> #47 0x0000000000574df0 in command_loop_1 () at ../../src/keyboard.c:1393
> #48 0x0000000000651040 in internal_condition_case (bfun=0x574974 <command_loop_1>, handlers=XIL(0x90), hfun=0x573df6 <cmd_error>) at ../../src/eval.c:1492
> #49 0x0000000000574559 in command_loop_2 (handlers=XIL(0x90)) at ../../src/keyboard.c:1134
> #50 0x00000000006502c5 in internal_catch (tag=XIL(0xe7c0), func=0x574532 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1223
> #51 0x00000000005744fd in command_loop () at ../../src/keyboard.c:1112
> #52 0x00000000005738c1 in recursive_edit_1 () at ../../src/keyboard.c:721
> #53 0x0000000000573ad5 in Frecursive_edit () at ../../src/keyboard.c:804
> #54 0x000000000056f9bd in main (argc=2, argv=0x7fffffffe158) at ../../src/emacs.c:2422
> [Thread 0x7ffff1953700 (LWP 1656) exited]

Thanks, should be fixed now on master.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk
  2021-12-26  1:22                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-26  8:25                         ` martin rudalics
  2022-01-02 12:14                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: martin rudalics @ 2021-12-26  8:25 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

 > Thanks, should be fixed now on master.

Confirmed.  The following tooltip related issues are still virulent with
an X-built PGTK port and (setq x-gtk-use-system-tooltips nil) here.

- The rightmost letter of a tooltip (typically an "u" in "Menu") is
   usually cropped off by ~50%.  Letters like "i" and "r" are fully
   visible so I suppose it's a variable pitch issue.  I don't see it with
   a mono-spaced font.

- Tooltips on menu bar items are system tooltips.  Also, the tooltip on
   "Next Buffer" in the Buffers menu does not show up for some reason.

- compute_tip_xy does not handle the 'bottom' parameter correctly when
   provided via 'x-show-tip'.  For example, if I ask for a value of 198
   pixels here I get a value of 829 (this issue being moot for system
   tooltips which always show up at the mouse position).

Note that none of these is an issue with the normal GTK build under X.

martin





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is  nil in pgtk
  2021-12-26  8:25                         ` martin rudalics
@ 2022-01-02 12:14                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-02 12:33                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-02 12:14 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

martin rudalics <rudalics@gmx.at> writes:

> - The rightmost letter of a tooltip (typically an "u" in "Menu") is
>   usually cropped off by ~50%.  Letters like "i" and "r" are fully
>   visible so I suppose it's a variable pitch issue.  I don't see it with
>   a mono-spaced font.

Thanks, I will look into that.

> - compute_tip_xy does not handle the 'bottom' parameter correctly when
>   provided via 'x-show-tip'.  For example, if I ask for a value of 198
>   pixels here I get a value of 829 (this issue being moot for system
>   tooltips which always show up at the mouse position).

Likewise.

> - Tooltips on menu bar items are system tooltips.

This won't be easy when using only GTK, and I don't really think this is
worth fixing.

>   Also, the tooltip on "Next Buffer" in the Buffers menu does not show
>   up for some reason.

Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is  nil in pgtk
  2022-01-02 12:14                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-02 12:33                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 16+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-02 12:33 UTC (permalink / raw)
  To: martin rudalics; +Cc: Lars Ingebrigtsen, 52705, Aleksandr Vityazev

Po Lu <luangruo@yahoo.com> writes:

> martin rudalics <rudalics@gmx.at> writes:
>
>> - The rightmost letter of a tooltip (typically an "u" in "Menu") is
>>   usually cropped off by ~50%.  Letters like "i" and "r" are fully
>>   visible so I suppose it's a variable pitch issue.  I don't see it with
>>   a mono-spaced font.
>
> Thanks, I will look into that.

It's a problem with how we receive allocation signals for the tooltip
frame, and then call xg_frame_resized on it.  I installed a workaround
on master.

That nasty bug doesn't happen on X builds because there tooltip windows
are regular X windows even when built with GTK.

Thanks.





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-01-02 12:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 15:27 bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil Aleksandr Vityazev
2021-12-22 14:37 ` Lars Ingebrigtsen
2021-12-24  8:08   ` bug#52705: 29.0.50; Flashing popups when x-gtk-use-system-tooltips is nil in pgtk Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-24  8:43     ` martin rudalics
2021-12-24  9:35       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-24 10:19         ` martin rudalics
2021-12-24 10:38           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-24 16:03             ` martin rudalics
2021-12-25  0:30               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-25  9:17                 ` martin rudalics
2021-12-25  9:39                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-25 17:16                     ` martin rudalics
2021-12-26  1:22                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-26  8:25                         ` martin rudalics
2022-01-02 12:14                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-02 12:33                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).