From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Mouse information in xterm. Date: Mon, 14 Sep 2020 21:04:53 +0200 Message-ID: <20200914190453.wcnptz344vju6msx@Ergus> References: <20200914113816.562wa5cwqxdtwnmy.ref@Ergus> <20200914113816.562wa5cwqxdtwnmy@Ergus> <83r1r49yc2.fsf@gnu.org> <20200914162710.c2ic5szp34tvwtib@Ergus> <83h7s09s98.fsf@gnu.org> <20200914181311.fd56gqwn4ntytkqn@Ergus> <83a6xs9ogq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 21:05:48 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 1kHtnP-000ADd-Q2 for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 21:05:47 +0200 Original-Received: from localhost ([::1]:53146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHtnO-0001kM-JX for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 15:05:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHtmj-0001FP-E3 for emacs-devel@gnu.org; Mon, 14 Sep 2020 15:05:05 -0400 Original-Received: from sonic315-14.consmr.mail.bf2.yahoo.com ([74.6.134.124]:46025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHtmg-0002ug-6E for emacs-devel@gnu.org; Mon, 14 Sep 2020 15:05:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1600110300; bh=X8PqjAlY0Xz8kQWEy/dyrXWCf+hL7xyMkNYG2SZZfFU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=KPUBVQq6rUijKjRraS8ll9smUna2ziafrHL0Fuj3pEPJNQfowd6clVK3VyV/kG4IkwapAYSPxrYccj++NBOfHrCA0FB3vIFrjYXN+8aUf9rBP4bTcaSBWjJwDocwDR5+GlgbbkO1daiQDISsrxA0SLsN+3CFXSy25JYGR9fl7BfgGmROcNoJ84Dmn24QJlvh1Mb8P/zHiw/uB8z0e8ZqDWhxdXjvvnh0iXJjbELq3aSdNU9v2JVFG7Czd5bEA5I8YJbKKMjqzZXeoB677vsy4G7wxchEPlUoMYBMo/HisariuQ1unVMchSkrW/LBwqY4t5Nhh8rupzWupl6BUmxWlw== X-YMail-OSG: w0Wh_cUVM1kXrg.ooiuCuC_CadgV7AjjaI82G.6uhriyZVsujRGgvifwLvQXtv5 f62ULs55t_aHK_VeRGKRzRwOpgmAnfdcU57mLXGfzVVYCL3BmSOOxHyR7CtDGeBauEwKiJ0YxKUv CptrMKdIYIRkGbXrniQrbBNE74Vpz3oXd3xv55RaEtNPfduHTE3wCh3T0GP.ch5JpMyTqdPMVKdH vO0h2ISN69UEUaAQFGCxhprRol5YNbrZO_AGPgzf2W7Tftcsy3JU5NoZh1n1M7s7B3pK107b_ZeC HxFMLjjrZ0GHLoozXcgpzI43p28uL01UVzAgz1U8aSmXTSoiniu5C8JfqCVsG6wYfdhoJGRdAWDa wgJsYhsLmf5nSduVfvafunwM3MR_.zt.flZmb5vzr8CidnwkePFtfJBqFuvq2kEV6ybVIu5B0D87 ORv7Q7Aq.ePs5hMV4_lxpata8u133tfApNmdFEhtsTLz1V9D0doAgfmoC1jiq7TCnpQsNChnej_X XzQVJshw3LSSvnZtXjlk4bkPervX2Tq4YPUOfZkFh6OgMHW.x0fdlNzW0t6.SHRsXO.9VVnQPq5C zQ0EdnLxGFnrHM1O06jusbTRSRb5OMNSnb0inz6TUeWhSHLN.ea5VOTNins8BZWHmOYKe6.KyHfB _vRejGJ_kgowkYnS4pAWaXERmmaWAH0sLqrPruZ7yaPdkFq1g7nLC.Vz9yTwPqiP6P7gWuAH3z1x qfXSYCk0KUoDBXc57j5WVq0cUMnVp5EoAW7x8s30Po5ETSbjP7crcsZPIXKxQ9udazg5KrdC9PmR zoCUMcOMKUvDN4VlkfmCT_xIRo0rYteMRgvW75b36V Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 14 Sep 2020 19:05:00 +0000 Original-Received: by smtp420.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 075cf1ed1d95f8d9a1e2a0da144e9059; Mon, 14 Sep 2020 19:04:59 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83a6xs9ogq.fsf@gnu.org> X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.134.124; envelope-from=spacibba@aol.com; helo=sonic315-14.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 15:05:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:255685 Archived-At: On Mon, Sep 14, 2020 at 09:56:37PM +0300, Eli Zaretskii wrote: >> Date: Mon, 14 Sep 2020 20:13:11 +0200 >> From: Ergus >> Cc: emacs-devel@gnu.org >> >> When we call x-popup-dialog with t as the first parameter. The function >> x_popup_menu_1 tries to get the cursor/mouse position calling >> term_mouse_position. (As the documentation says) >> >> The issue is that term_mouse_position always report (0,0) as the current >> position independently of the cursor and mouse actual positions because >> it just copies the values in last_mouse_x and last_mouse_y which are >> zero because nobody updated them, see. > >last_mouse_x and last_mouse_y will change only if you use GPM mouse on >the terminal. Otherwise, these variables will remain zero on >GNU/Linux. So what you see is expected unless you use GPM (do you?). > >The doc string of x-popup-dialog says that if POSITION is t, then the >dialog appears at the center of the selected frame. So what you see >is exactly what the documentation says, and I don't understand what is >the problem you are trying to solve, or why POSITION being t is >important to you, or where you expected or wanted the dialog to pop up >or why there. Please elaborate, as I feel we are talking past each >other. > >I see the same on a GUI frame, btw, so I also don't understand what >"works as expected in gui" for you. > >What am I missing? > x-popup-menu manual says: If position is t, it means to use the current mouse position (or the top-left corner of the frame if the mouse is not available on a text terminal) The part of "if the mouse is not available on a text terminal" then doesn't apply to xterm with xterm-mouse-mode?