From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: x-popup-menu pops up at funny positions Date: Sun, 05 Jan 2003 13:33:25 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200301041432.h04EWje8032078@stubby.bodenonline.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041792247 24096 80.91.224.249 (5 Jan 2003 18:44:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2003 18:44:07 +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 18VFkj-0006GS-00 for ; Sun, 05 Jan 2003 19:44:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18VFoQ-0007Vx-00 for ; Sun, 05 Jan 2003 19:47:55 +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 18VFfE-0001nP-02 for emacs-devel@quimby.gnus.org; Sun, 05 Jan 2003 13:38:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18VFbm-00012f-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:34:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18VFbe-0000uq-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:34:44 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VFaP-0000KK-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:33:25 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18VFaP-0008OA-00; Sun, 05 Jan 2003 13:33:25 -0500 Original-To: jan.h.d@swipnet.se In-reply-to: <200301041432.h04EWje8032078@stubby.bodenonline.com> (jan.h.d@swipnet.se) 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:10505 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10505 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? 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? Replacing mouse_position_hook with a simple XQueryPointer cures this. Could you send the diff to do that? (Or just install it?)