unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>
Cc: emacs-devel@gnu.org
Subject: Re: Mouse information in xterm.
Date: Mon, 14 Sep 2020 20:34:43 +0300	[thread overview]
Message-ID: <83h7s09s98.fsf@gnu.org> (raw)
In-Reply-To: <20200914162710.c2ic5szp34tvwtib@Ergus> (message from Ergus on Mon, 14 Sep 2020 18:27:10 +0200)

> Date: Mon, 14 Sep 2020 18:27:10 +0200
> From: Ergus <spacibba@aol.com>
> Cc: emacs-devel@gnu.org
> 
> The menu part is just how I observed the issue. The problem is somewhere
> else; handle_one_term_event is never called (at least for me) either
> when moving the cursor, or the mouse or clicking here and there. So the
> variables last_mouse_x and last_mouse_y are not updated.
> 
> So far I observe that handle_one_term_event is called in a single place
> in the code, but the condition to enter the "if" around is never true at
> least for me.
> 
> I tried to create the x-dialog from the scratch buffer. The code works
> as expected in gui, but in xterm I see this problem.
> 
> I just tried this in xterm:
> 
> (x-popup-dialog t '("Dialog" "Value1" "Value"))
> 
> And the dialog appears either in (0,0) or in the center of the screen,
> but not related with the mouse or cursor positions.
> 
> There is another function that updated last_mouse_x and last_mouse_y,
> but all it's code is commented.

I'm sorry, I still don't understand what are the issues that bother
you.  Are you trying to pop up a menu from the minibuffer, as in the
above x-popup-dialog call?  And all the rest of your questions are
just your attempt to understand why x-popup-dialog doesn't work as you
expected?  Or are you after something else?

IOW, let me be blunt and ask why do you care what are last_mouse_x and
last_mouse_y, and which code sets them?



  reply	other threads:[~2020-09-14 17:34 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 ` Mouse information in xterm Ergus
2020-09-14 15:23   ` Eli Zaretskii
2020-09-14 16:27     ` Ergus
2020-09-14 17:34       ` Eli Zaretskii [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83h7s09s98.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=spacibba@aol.com \
    /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 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).