From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: x-popup-menu pops up at funny positions Date: Sun, 5 Jan 2003 23:05:19 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041804436 29726 80.91.224.249 (5 Jan 2003 22:07:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2003 22:07:16 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18VIvL-0007jB-00 for ; Sun, 05 Jan 2003 23:07:15 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18VIz7-00014y-00 for ; Sun, 05 Jan 2003 23:11:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VIvK-0003W0-08 for emacs-devel@quimby.gnus.org; Sun, 05 Jan 2003 17:07:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18VIuz-00038C-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 17:06:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18VIuh-0002Kx-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 17:06:39 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VIuP-0001ki-00; Sun, 05 Jan 2003 17:06:17 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h05N1ddw027556; Mon, 6 Jan 2003 00:01:40 +0100 Original-To: rms@gnu.org In-Reply-To: X-Mailer: Apple Mail (2.482) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10510 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10510 > Because it did not in fact read the current position. It read > the position of the inner window in coordinates that are valid > for the parent window. Now, if the parent window is the root > window, then it reads the current position. But in all other > cases it does not. > > Instead of just deleting that code, can you replace it with code > that does the right job? I did that. The additions to x/y before assigning them to dummy.root_x/y. > One could replace parent_desc with the root window, but it > seemd pointless to do a query to the X server when Emacs > has all the information already and a simple addition finds > the current position. > > I am not sure it is always up to date. Could you check? I will check some more on different window managers, but so far it has been up to date. I studied the code and I believe it keeps things up to date. > Replacing mouse_position_hook with a simple XQueryPointer > cures this. > > Could you send the diff to do that? > (Or just install it?) I'll install it when I done the checking (and it still is OK :-) Jan D.