all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Cecilio Pardo <cpardo@imayhem.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Bug with tab bar and event delivery to header line
Date: Fri, 18 Oct 2019 14:33:24 +0200	[thread overview]
Message-ID: <86wod2kzcb.fsf@inmotica-integral.es> (raw)
In-Reply-To: <83zhhy8sod.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Oct 2019 09:38:10 +0300")


>> coordinates_in_window. 
>> When testing for the header line, it uses the height of the tab bar:
>> 
>>  || (window_wants_header_line (w)
>>      && y < top_y + CURRENT_TAB_LINE_HEIGHT (w) 
>>                   + CURRENT_HEADER_LINE_HEIGHT (w)
>> 	 && (part = ON_HEADER_LINE)))
>> 
>> I checked that CURRENT_TAB_LINE_HEIGHT returns a big value even
>> when there is no tab bar. I don't know if that's correct or not.
>
> Please show a recipe to reproduce this, and please tell what value did
> you see.  CURRENT_TAB_LINE_HEIGHT returns the height in pixels, not in
> screen lines, so maybe that's the reason you thought it was too large?

On a window with header line (package-list-packages), move the
mouse pointer to the line inmediately below the header line. Move the
mouse wheel, and get the message:

<header-line> <mouse-5> is undefined

Also, clickable items on the header line are highlighted as if the mouse
was over them when the mouse is on the line below.

Tested on X11 and win32.

With printf, I got sizes 18 and 233 on X11 and Win32, without any tab bar.

> In any case, if there some scenario where mouse events are interpreted
> incorrectly, please report that using report-emacs-bug, together with
> all the details necessary to reproduce the problem.  It could be that
> the cause is the tab bar, or it could be something else, but the
> problem needs to be debugged in either case.

I just did that.
Thank you.

-- 
Cecilio Pardo



      reply	other threads:[~2019-10-18 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17 20:34 Bug with tab bar and event delivery to header line Cecilio Pardo
2019-10-18  6:38 ` Eli Zaretskii
2019-10-18 12:33   ` Cecilio Pardo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wod2kzcb.fsf@inmotica-integral.es \
    --to=cpardo@imayhem.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.