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 Subject: Re: Debugging window positioning under X11 Date: Fri, 21 Jan 2011 07:46:19 +0100 Message-ID: <4D392BBB.1060609@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295592473 31107 80.91.229.12 (21 Jan 2011 06:47:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2011 06:47:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 21 07:47:48 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PgAmi-00088B-43 for ged-emacs-devel@m.gmane.org; Fri, 21 Jan 2011 07:47:48 +0100 Original-Received: from localhost ([127.0.0.1]:56090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgAmh-0008PB-ED for ged-emacs-devel@m.gmane.org; Fri, 21 Jan 2011 01:47:47 -0500 Original-Received: from [140.186.70.92] (port=40169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgAlM-0007pi-Ky for emacs-devel@gnu.org; Fri, 21 Jan 2011 01:46:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgAlK-0003jt-Re for emacs-devel@gnu.org; Fri, 21 Jan 2011 01:46:24 -0500 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:38111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgAlK-0003e5-9H for emacs-devel@gnu.org; Fri, 21 Jan 2011 01:46:22 -0500 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 544BFE997A for ; Fri, 21 Jan 2011 07:46:20 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AloxAMu5OE1V4S1kPGdsb2JhbACIXpwEDAEBAQE1L74UhVAEjkQ X-IronPort-AV: E=Sophos;i="4.60,356,1291590000"; d="scan'208";a="166194982" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 21 Jan 2011 07:46:20 +0100 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 698167FA05A; Fri, 21 Jan 2011 07:46:19 +0100 (CET) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:134837 Archived-At: Stefan Monnier skrev 2011-01-20 22.45: > Could someone give me some hints where I should try and dig in order to > solve some window-positioning problems I have? > > - seems to only appear with the athena/lucid toolkit, not with gtk. > - does not appear with metacity, but does appear with my venerable ctwm. > - appears both with the emacs-23 and the trunk code. An old Emacs-22 > I have around does not exhibit this problem. > > The problem: > - emacs -Q -g 80x40+0-0 > does not show up where I expect it: the frame is a lot lower > than planned: I barely get to see the top half. With gtk it's either > a bit lower or a bit higher than planned, depending on whether > I activate tool-bar-mode, but it's not nearly as wrong as with athena/lucid. > - with 80x30+0-0 I barely see the top of the frame. > - with 80x29+0-0 (or anything below 30), it gets placed at +0+0, > probably because ctwm tells itself "wow, it's outside the screen, > let's ignore the specified geometry". > - looking at the x-dimension position of the frame, it looks like the > distance between the top and the frame's position is about twice what > it should be (e.g. when the -0 corresponds to +197 the frame's > placed at +450, when the -0 corresponds to +347, it ends up at > +750 instead, and when -0 corresponds to +497 it ends up at +1034). > - after moving my minibuffer frame to where I like it to be, the frame > params still say (top . 0) (left . 0). > - when I run emacsclient, which opens a new frame, the minibuffer frame > jumps back to +0+0. > > Does this ring a bell for someone? > Any hint where I should start digging? x_figure_window_size calculates top/left. x_window converts it to a geometry string and sets XtNgeometry. As for "params still say (top . 0) (left . 0)", x_real_positions calculates that and shall be called on ConfigureNotify. Either x_real_positions does the wrong thing or ctwm doesn't send ConfigureNotify on move. Jan D.