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: Resizing gui Emacs on macosx/Lion Date: Fri, 16 Sep 2011 19:48:12 +0200 Message-ID: <4E738BDC.1090001@swipnet.se> References: <27405233-2349-4996-8486-A8287DBEE80E@mit.edu> 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 1316195308 5575 80.91.229.12 (16 Sep 2011 17:48:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2011 17:48:28 +0000 (UTC) Cc: Emacs devel To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 19:48:23 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4cWQ-0000Rj-Ux for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2011 19:48:19 +0200 Original-Received: from localhost ([::1]:38259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4cWQ-0007Sk-K5 for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2011 13:48:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4cWN-0007Qd-Ne for emacs-devel@gnu.org; Fri, 16 Sep 2011 13:48:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4cWM-0001Mx-Os for emacs-devel@gnu.org; Fri, 16 Sep 2011 13:48:15 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:39180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4cWM-0001MN-Ar for emacs-devel@gnu.org; Fri, 16 Sep 2011 13:48:14 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id D36CAEA165 for ; Fri, 16 Sep 2011 19:48:12 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqJkANqKc05V4S3JPGdsb2JhbABCDokNnEaBfQsBAQEBNzKBUwEBBAE4HiIBEAshFg8JAwIBAgEbDAoUBg0BBwEBh3MCtFCGeASYZ4tXOg X-IronPort-AV: E=Sophos;i="4.68,394,1312149600"; d="scan'208";a="220077123" Original-Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by ipb1.telenor.se with ESMTP; 16 Sep 2011 19:48:12 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 129857FA057; Fri, 16 Sep 2011 19:48:12 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <27405233-2349-4996-8486-A8287DBEE80E@mit.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144071 Archived-At: Hello. chad skrev 2011-09-15 23:27: > Has anyone else noticed this? Yes. > > The latest macosx introduced some changes in the underlying graphical > toolkit, including replacing the bottom-right `resize handle' with the > ability to resize from any edge. In Emacs (Emacs.app, bzr head), if > the vertical size is adjusted using this resize mechanism, the window > position changes. If the window is made taller from the top, the > final position ends up under the cursor, so the result is simply some > distracting `flex' as the resize adjusts in line-sized increments. If > the window is made smaller from the bottom, the window seems to > flicker entirely off the screen, but then back onto the screen. If > the window is made larger from the bottom, emacs flickers, ends up > lower on the display that it started, and can end up entirely off the > screen. > > I'm not filing a bug report yet, because I've scheduled some time to look > into emacs issues over the weekend, but I thought I'd check and see if > anyone else has run into this problem. The problem is in windowDidResize. Instead of accepting the size given, Emacs calls x_set_window_size which in turn tries to resize the frame and all kind of things go wrong. windowDidResize should just calculate rows and cols from pixels sizes and call change_frame_size like the X11 ports do. I imagine it is not too hard to fix, I might get round to it if you don't fix it first. Jan D.