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: Mon, 6 Jan 2003 01:13:53 +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 1041812187 22770 80.91.224.249 (6 Jan 2003 00:16:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2003 00:16:27 +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 18VKwM-0005v8-00 for ; Mon, 06 Jan 2003 01:16:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18VL0B-0002Qw-00 for ; Mon, 06 Jan 2003 01:20:23 +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 18VKuX-0001Rs-04 for emacs-devel@quimby.gnus.org; Sun, 05 Jan 2003 19:14:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18VKuF-0001RG-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 19:14:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18VKuD-0001Pa-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 19:14:14 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VKuC-0001PN-00; Sun, 05 Jan 2003 19:14:12 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h0619bdw028815; Mon, 6 Jan 2003 02:09:38 +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:10516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10516 >> 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. There is one border case. When a dialog is up and the Emacs frame is moved, then the positions will be wrong. Updating the positions on EnterNotify by calling x_real_position fixes that. Jan D.