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 18:23:25 +0300 Message-ID: <83r1r49yc2.fsf@gnu.org> References: <20200914113816.562wa5cwqxdtwnmy.ref@Ergus> <20200914113816.562wa5cwqxdtwnmy@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31140"; 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 18:06:43 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 1kHr06-00081M-Ry for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 18:06:42 +0200 Original-Received: from localhost ([::1]:40496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHr05-0001pE-QI for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 12:06:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHqKB-0006qs-6w for emacs-devel@gnu.org; Mon, 14 Sep 2020 11:23:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54055) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHqKA-0002cr-MO; Mon, 14 Sep 2020 11:23:22 -0400 Original-Received: from [176.228.60.248] (port=3795 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kHqK9-0004ds-Sc; Mon, 14 Sep 2020 11:23:22 -0400 In-Reply-To: <20200914113816.562wa5cwqxdtwnmy@Ergus> (message from Ergus on Mon, 14 Sep 2020 13:38:16 +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:255656 Archived-At: > Date: Mon, 14 Sep 2020 13:38:16 +0200 > From: Ergus > > 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?? It's hard to answer your questions, because you didn't describe what you tried to do. For starters, did you invoke and navigate the menus with a mouse or with a keyboard?