From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: Bug in CVS Emacs frame positioning under X Date: Mon, 27 Mar 2006 08:48:20 +0200 Message-ID: <44278AB4.90006@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143442182 7189 80.91.229.2 (27 Mar 2006 06:49:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 06:49:42 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Fran Litterio , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 27 08:49:39 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 1FNlXm-0001VI-Ls for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2006 08:49:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNlXm-0006hy-8K for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2006 01:49:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FNlXL-0006hX-Cd for emacs-devel@gnu.org; Mon, 27 Mar 2006 01:49:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FNlXJ-0006gx-IP for emacs-devel@gnu.org; Mon, 27 Mar 2006 01:49:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNlXI-0006gp-UD; Mon, 27 Mar 2006 01:49:09 -0500 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FNlYj-0007da-7C; Mon, 27 Mar 2006 01:50:37 -0500 Original-Received: from coolsville.localdomain ([83.226.180.152] [83.226.180.152]) by mxfep01.bredband.com with ESMTP id <20060327064904.VHMU16061.mxfep01.bredband.com@coolsville.localdomain>; Mon, 27 Mar 2006 08:49:04 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Original-To: rms@gnu.org 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:52082 gmane.emacs.bugs:14993 Archived-At: Richard Stallman wrote: > The symptom is that not all of the frames end up positioned at x/y > coordinates 300/300. Some frames are positioned at 300+A/300+B, where > A is the width of the left border drawn by the window manager and B is > the height of the top border drawn by the window manager. Some frames > even end up at 400/400 ! > > I think I have a patch to src/xterm.c that may fix this. I will try > it and let you know if the patch works. Please also tell which window managers you tested it on. > > This resembles a problem that I struggled with about 10 years ago. > It might be the same one. > > I found that various cases of window positioning were a little bit > off. So I would fix the case that failed, and then some other case > started to fail. Eventually I gave up. That is the basic problem. Each window manager does window moves differently, and the fact that events may come at different times complicates things. I now try to make it work on a lot of window managers, but I gave up on "all". > > With better records, perhaps I could have determined the pattern of > what failed and what succeeded, and figured out an overall solution. > We should start keeping such records now, in case the patch > which fixes this case breaks another case. The patch must be tested on at least 10 or so of the most common window managers. Usually it is difficult to make a patch that doesn't break some other window manager. Jan D.