all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
@ 2018-07-28 16:09 Carlos Pita
  2018-07-29  7:52 ` martin rudalics
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Pita @ 2018-07-28 16:09 UTC (permalink / raw
  To: 32298

This happens at least in the popular i3 window manager and was
reported to their tracker [1]. Please read that report, there are lots
of details there, including xprop and xwininfo outputs for the
tooltips.

The weird thing is that emacs gtk tooltips haven't any tooltip related
property set. I'm not sure whether this is because of the way I've
called xprop and xwininfo on them (again, details in [1]) or what, but
the problem is that the window manager is trying to manage them since it
can't indentify them as tooltips and, so, they're not themed as the gtk
theme specifies for tooltips.

---

[1] https://github.com/i3/i3/issues/3334

---

In GNU Emacs 26.1.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-07-24 built on archlinux
Repository revision: f64c2774e96c755a5fddcbc49db65dcc3fcb9323
Windowing system distributor 'The X.Org Foundation', version 11.0.12000000
Recent messages:
Saving file /home/carlos/.config/polybar/config...
Wrote /home/carlos/.config/polybar/config
Saving file /home/carlos/.config/polybar/config...
Wrote /home/carlos/.config/polybar/config
Saving file /home/carlos/.config/polybar/config...
Wrote /home/carlos/.config/polybar/config
Saving file /home/carlos/.config/polybar/config...
Wrote /home/carlos/.config/polybar/config
Saving file /home/carlos/.config/polybar/config...
Wrote /home/carlos/.config/polybar/config

Configured using:
 'configure --prefix=/home/carlos/local/stow/emacs-26
 --libexecdir=/home/carlos/local/stow/emacs-26/lib --with-x-toolkit=gtk3
 --with-xft --with-modules'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
MODULES THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Conf[Unix]

Minor modes in effect:
  global-magit-file-mode: t
  magit-file-mode: t
  magit-auto-revert-mode: t
  auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  pdf-occur-global-minor-mode: t
  diff-auto-refine-mode: t
  pyvenv-mode: t
  shell-dirtrack-mode: t
  xclip-mode: t
  winner-mode: t
  show-paren-mode: t
  ido-ubiquitous-mode: t
  ido-everywhere: t
  global-company-mode: t
  company-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail conf-mode misearch
multi-isearch cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs autoload lisp-mnt magit-bookmark
magit-obsolete magit-blame magit-stash magit-bisect magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-collab ghub-graphql ghub
url-http tls gnutls url-gw nsm url-auth url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap magit-files magit-refs magit-status magit magit-repos
magit-apply magit-wip magit-log which-func magit-diff smerge-mode
magit-core magit-autorevert autorevert filenotify magit-process
magit-margin magit-mode git-commit magit-git magit-section magit-utils
crm magit-popup log-edit message rmc puny rfc822 mml mml-sec epa derived
epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async
server dash display-line-numbers checkdoc pdf-occur ibuf-ext ibuffer
ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp
semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util
semantic semantic/tag semantic/lex semantic/fw mode-local find-func
cedet dired dired-loaddefs pdf-isearch let-alist pdf-misc imenu
pdf-tools pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util
image-mode vc-git cl-extra yasnippet elec-pair highlight-indentation
flymake-proc flymake warnings help-fns radix-tree help-mode elpy
find-file-in-project ivy delsel colir color ivy-overlay ffap thingatpt
windmove diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd
esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode
esh-util elpy-profile elpy-django elpy-refactor subr-x python tramp-sh
tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete
parse-time format-spec advice json map grep compile comint ansi-color
files-x doom-themes-org doom-tomorrow-night-theme doom-themes
doom-themes-common company-oddmuse company-keywords company-etags etags
xref project company-gtags company-dabbrev-code company-dabbrev
company-files company-capf company-cmake company-xcode company-clang
company-semantic company-eclim company-template company-bbdb xclip
winner ring paren ido-completing-read+ memoize s cus-edit minibuf-eldef
ido gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045
ietf-drums mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro
pcase cus-start cus-load finder-inf info package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 592336 40228)
 (symbols 48 46115 2)
 (miscs 40 1417 633)
 (strings 32 121941 4601)
 (string-bytes 1 3733468)
 (vectors 16 77957)
 (vector-slots 8 1939207 219996)
 (floats 8 513 655)
 (intervals 56 2194 90)
 (buffers 992 28))





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-07-28 16:09 bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips Carlos Pita
@ 2018-07-29  7:52 ` martin rudalics
  2018-07-30 22:53   ` Carlos Pita
  0 siblings, 1 reply; 8+ messages in thread
From: martin rudalics @ 2018-07-29  7:52 UTC (permalink / raw
  To: Carlos Pita, 32298

 > The weird thing is that emacs gtk tooltips haven't any tooltip related
 > property set. I'm not sure whether this is because of the way I've
 > called xprop and xwininfo on them (again, details in [1]) or what, but
 > the problem is that the window manager is trying to manage them since it
 > can't indentify them as tooltips and, so, they're not themed as the gtk
 > theme specifies for tooltips.

In xg_prepare_tooltip after

   gwin = gtk_widget_get_window (GTK_WIDGET (x->ttip_window));

insert the line

   gdk_window_set_override_redirect (gwin, TRUE);

but I doubt this would help much making GTK tooltips look as wanted
by a specific theme.

martin





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-07-29  7:52 ` martin rudalics
@ 2018-07-30 22:53   ` Carlos Pita
  2018-07-30 22:59     ` Carlos Pita
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Pita @ 2018-07-30 22:53 UTC (permalink / raw
  To: martin rudalics; +Cc: 32298

I think your suggestion is on the right track but I have added that
line and recompiled and still xwininfo reports `Override Redirect
State: no`.





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-07-30 22:53   ` Carlos Pita
@ 2018-07-30 22:59     ` Carlos Pita
  2018-07-31  6:38       ` martin rudalics
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Pita @ 2018-07-30 22:59 UTC (permalink / raw
  To: martin rudalics; +Cc: 32298

I also tried adding (override-redirect . t) to
tooltip-frame-parameters but to no avail. I assume these parameters
are only for non system tooltips.

On Mon, Jul 30, 2018 at 7:53 PM, Carlos Pita <carlosjosepita@gmail.com> wrote:
> I think your suggestion is on the right track but I have added that
> line and recompiled and still xwininfo reports `Override Redirect
> State: no`.





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-07-30 22:59     ` Carlos Pita
@ 2018-07-31  6:38       ` martin rudalics
  2018-08-03 22:14         ` Carlos Pita
  0 siblings, 1 reply; 8+ messages in thread
From: martin rudalics @ 2018-07-31  6:38 UTC (permalink / raw
  To: Carlos Pita; +Cc: 32298

 > I also tried adding (override-redirect . t) to
 > tooltip-frame-parameters but to no avail. I assume these parameters
 > are only for non system tooltips.

Right.  Does the 'override-redirect' parameter work for normal,
non-tooltip frames on your system?  Does xwininfo report it as
"override-redirect"?

martin





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-07-31  6:38       ` martin rudalics
@ 2018-08-03 22:14         ` Carlos Pita
  2018-08-03 22:18           ` Carlos Pita
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Pita @ 2018-08-03 22:14 UTC (permalink / raw
  To: martin rudalics; +Cc: 32298

This is what xwininfo reports for a tooltip in firefox:



xwininfo: Window id: 0x1c00898 (has no name)

  Root window id: 0xf5 (the root window) "i3"
  Parent window id: 0x1c00897 "Firefox"
     0 children.

  Absolute upper-left X:  894
  Absolute upper-left Y:  1305
  Relative upper-left X:  -1
  Relative upper-left Y:  -1
  Width: 1
  Height: 1
  Depth: 0
  Visual: 0xeb
  Visual Class: TrueColor
  Border width: 0
  Class: InputOnly
  Colormap: 0x0 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnviewable
  Override Redirect State: no
  Corners:  +894+1305  -1025+1305  -1025-542  +894-542
  -geometry 1x1+895+1306

  Bit gravity: ForgetGravity
  Window gravity: NorthWestGravity
  Backing-store hint: NotUseful
  Backing-planes to be preserved: 0xffffffff
  Backing pixel: 0
  Save-unders: No

  Someone wants these events:
      KeyPress
      KeyRelease
      FocusChange
  Do not propagate these events:
  Override redirection?: No

  No window manager hints defined
  Window manager hints:
      Process id: (unknown)

  No normal window size hints defined
  No zoom window size hints defined

  No window shape defined
  No border shape defined



It's not override redirected but still is different from the report
for the tooltip in emacs:



xwininfo: Window id: 0x8001ad (has no name)

  Absolute upper-left X:  953
  Absolute upper-left Y:  403
  Relative upper-left X:  -1
  Relative upper-left Y:  -1
  Width: 1
  Height: 1
  Depth: 0
  Visual: 0xbf
  Visual Class: TrueColor
  Border width: 0
  Class: InputOnly
  Colormap: 0x0 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +953+403  -412+403  -412-364  +953-364
  -geometry 1x1-33+404





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-08-03 22:14         ` Carlos Pita
@ 2018-08-03 22:18           ` Carlos Pita
  2018-08-04  7:32             ` martin rudalics
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Pita @ 2018-08-03 22:18 UTC (permalink / raw
  To: martin rudalics; +Cc: 32298

Sorry, this one is for emacs (the one in my previous email was copied
from the i3 report but it seems that something changed since then),
now it doesn't look very different to me:

xwininfo: Window id: 0x1600165 (has no name)

  Root window id: 0xf5 (the root window) "i3"
  Parent window id: 0x1600164 (has no name)
     0 children.

  Absolute upper-left X:  905
  Absolute upper-left Y:  1699
  Relative upper-left X:  -1
  Relative upper-left Y:  -1
  Width: 1
  Height: 1
  Depth: 0
  Visual: 0xc0
  Visual Class: TrueColor
  Border width: 0
  Class: InputOnly
  Colormap: 0x0 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +905+1699  -1014+1699  -1014-148  +905-148
  -geometry 1x1+906-69

  Bit gravity: ForgetGravity
  Window gravity: NorthWestGravity
  Backing-store hint: NotUseful
  Backing-planes to be preserved: 0xffffffff
  Backing pixel: 0
  Save-unders: No

  Someone wants these events:
      KeyPress
      KeyRelease
      FocusChange
  Do not propagate these events:
  Override redirection?: No

  No window manager hints defined
  Window manager hints:
      Process id: (unknown)

  No normal window size hints defined
  No zoom window size hints defined

  No window shape defined
  No border shape defined





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

* bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips
  2018-08-03 22:18           ` Carlos Pita
@ 2018-08-04  7:32             ` martin rudalics
  0 siblings, 0 replies; 8+ messages in thread
From: martin rudalics @ 2018-08-04  7:32 UTC (permalink / raw
  To: Carlos Pita; +Cc: 32298

 > Sorry, this one is for emacs (the one in my previous email was copied
 > from the i3 report but it seems that something changed since then),
 > now it doesn't look very different to me:

IIUC in both cases xwindow reports nothing tooltip specific for these
tooltip windows.  So I wonder how a tooltip specific theme background
could be applied to them.  Would xprop reveal anything useful in this
regard?

In either case, for i3's sake we should be able to make our tooltips
override-redirect windows and apparently the request to do that gets
lost somewhere.

martin





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

end of thread, other threads:[~2018-08-04  7:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-28 16:09 bug#32298: 26.1.50; Emacs gtk system tooltips are not shown as tooltips Carlos Pita
2018-07-29  7:52 ` martin rudalics
2018-07-30 22:53   ` Carlos Pita
2018-07-30 22:59     ` Carlos Pita
2018-07-31  6:38       ` martin rudalics
2018-08-03 22:14         ` Carlos Pita
2018-08-03 22:18           ` Carlos Pita
2018-08-04  7:32             ` martin rudalics

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.