From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: Bug in CVS Emacs frame positioning under X Date: Tue, 28 Mar 2006 18:59:11 +0200 Message-ID: <44296B5F.5010502@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143565218 26575 80.91.229.2 (28 Mar 2006 17:00:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 17:00:18 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Richard Stallman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 28 19:00:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOHY0-0001L2-Bn for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2006 19:00:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOHXz-00049b-TD for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2006 11:59:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FOHXo-00048a-Jk for emacs-devel@gnu.org; Tue, 28 Mar 2006 11:59:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FOHXm-00047p-Tm for emacs-devel@gnu.org; Tue, 28 Mar 2006 11:59:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOHXm-00047m-OH; Tue, 28 Mar 2006 11:59:46 -0500 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FOHZI-00056c-8D; Tue, 28 Mar 2006 12:01:20 -0500 Original-Received: from coolsville.localdomain ([83.226.180.152] [83.226.180.152]) by mxfep01.bredband.com with ESMTP id <20060328165927.UFDG16061.mxfep01.bredband.com@coolsville.localdomain>; Tue, 28 Mar 2006 18:59:27 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Original-To: Fran Litterio In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52157 gmane.emacs.bugs:15006 Archived-At: Fran Litterio wrote: > > If there were a function that can be called to synchronously obtain the current > position of a window, then x_check_expected_move() could use that function > instead of relying on possibly incorrect data from the last ConfigureNotify > event. > > I don't (yet) know enough about X Window system programming to know if such a > function exists. If someone does know, please inform me. If I find a solution, > I'll submit a patch. XSync, XMoveWindow, and then XSync again should make the next ConfigureWindow contain the position after move. XGetGeometry and XGetWindowAttributes should do the trick. Jan D.