From: Ergus <spacibba@aol.com>
To: emacs-devel@gnu.org
Subject: Mouse information in xterm.
Date: Mon, 14 Sep 2020 13:38:16 +0200 [thread overview]
Message-ID: <20200914113816.562wa5cwqxdtwnmy@Ergus> (raw)
In-Reply-To: 20200914113816.562wa5cwqxdtwnmy.ref@Ergus
Hi I have a question that I am not sure if this is a bug or a feature.
I have been playing with x-popup-menu today and I noticed that in
terminal, when we pass t as the first parameter the popup appears in
position (0, 0) which is wrong.
I debugged the C code and it seems that this position is expected to be
computed in x_popup_menu_1 calling:
mouse_position_hook which is a pointer to term_mouse_position and the
vales are taken there from last_mouse_x and last_mouse_y.
The issue is that those values are updated only in term_mouse_movement
which is called in handle_one_term_event but that function never
triggers my gdb.
Is this somehow intended and a limitation of the terminal interface??
next parent reply other threads:[~2020-09-14 11:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200914113816.562wa5cwqxdtwnmy.ref@Ergus>
2020-09-14 11:38 ` Ergus [this message]
2020-09-14 15:23 ` Mouse information in xterm Eli Zaretskii
2020-09-14 16:27 ` Ergus
2020-09-14 17:34 ` Eli Zaretskii
2020-09-14 18:13 ` Ergus
2020-09-14 18:56 ` Eli Zaretskii
2020-09-14 19:04 ` Ergus
2020-09-14 19:14 ` Eli Zaretskii
2020-09-14 19:45 ` Ergus
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=20200914113816.562wa5cwqxdtwnmy@Ergus \
--to=spacibba@aol.com \
--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.