From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Mouse information in xterm. Date: Mon, 14 Sep 2020 20:34:43 +0300 Message-ID: <83h7s09s98.fsf@gnu.org> References: <20200914113816.562wa5cwqxdtwnmy.ref@Ergus> <20200914113816.562wa5cwqxdtwnmy@Ergus> <83r1r49yc2.fsf@gnu.org> <20200914162710.c2ic5szp34tvwtib@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 19:37:13 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHsPg-0000oX-Ov for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 19:37:12 +0200 Original-Received: from localhost ([::1]:37446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHsPf-0003Fl-Qm for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 13:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHsNE-0000sD-53 for emacs-devel@gnu.org; Mon, 14 Sep 2020 13:34:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56734) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHsND-0007w4-QY; Mon, 14 Sep 2020 13:34:39 -0400 Original-Received: from [176.228.60.248] (port=3930 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kHsNC-0006jm-IB; Mon, 14 Sep 2020 13:34:39 -0400 In-Reply-To: <20200914162710.c2ic5szp34tvwtib@Ergus> (message from Ergus on Mon, 14 Sep 2020 18:27:10 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255678 Archived-At: > Date: Mon, 14 Sep 2020 18:27:10 +0200 > From: Ergus > 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?