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: x-display-pixel-width/height inconsistency Date: Fri, 5 Jul 2013 13:25:30 +0200 Message-ID: <8F67C4E1-0640-4912-A73B-1B120C8E8F0B@swipnet.se> References: <83vc6tcqss.fsf@gnu.org> <83haibdipo.fsf@gnu.org> <837gj7co0l.fsf@gnu.org> <8338tvcjlp.fsf@gnu.org> <83wqr7b3h6.fsf@gnu.org> <51D12678.5090806@gmx.at> <51D2ADAA.9000805@gmx.at> <51D2D180.6050002@gmx.at> <51D3EE69.9080808@gmx.at> <51D41CA2.8000206@gmx.at> <51D541B6.1000908@gmx.at> <5987E302-6673-4F89-8865-D02F701917B4@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373023541 27504 80.91.229.3 (5 Jul 2013 11:25:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 11:25:41 +0000 (UTC) Cc: martin rudalics , YAMAMOTO Mitsuharu , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 13:25:39 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uv48x-0003F1-9P for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 13:25:39 +0200 Original-Received: from localhost ([::1]:46456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv48w-0007S8-TB for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 07:25:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv48s-0007S0-Jn for emacs-devel@gnu.org; Fri, 05 Jul 2013 07:25:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv48r-0001vt-65 for emacs-devel@gnu.org; Fri, 05 Jul 2013 07:25:34 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:56020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv48q-0001ve-UM for emacs-devel@gnu.org; Fri, 05 Jul 2013 07:25:33 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id D85D1919A for ; Fri, 5 Jul 2013 13:25:30 +0200 (CEST) Original-Received: (qmail 22029 invoked by uid 89); 5 Jul 2013 11:25:30 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 5 Jul 2013 11:25:30 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 6D05E1A1B8C; Fri, 5 Jul 2013 11:25:30 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 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:161576 Archived-At: Hello. 5 jul 2013 kl. 11:41 skrev Juanma Barranquero : > On Fri, Jul 5, 2013 at 11:34 AM, Jan Dj=E4rv = wrote: >=20 >> W32 is the odd duck here, frame-parameter top in NS and X >> refers to the outer edge of the window including caption height, >> i.e. the real top of the frame. >=20 > Sorry, I don't understand. AFAIK, the `top' frame parameter in Windows > also refers to the real top of the frame, but I fail to see the > relationship between that fact and what I was discussing. You said: > So, IMO, the only thing that makes sense is to > move/resize a frame while restoring when that frame is entirely > outside the current viewing area. Or, perhaps, when the caption is > (because in many/most/all? window managers, you can mouse-drag a > window only from its caption). >=20 > Of course, there's no way to know the caption height (in pixels) from > inside Emacs, I think, so in the end it's all an ugly heuristics: the > top of the frame is some arbitrary number of pixels inside the viewing > area. Or is there a better way? >=20 You don't need "some arbitrary number of pixels". As I outlined before, = if top/left is inside, put the frame there, otherwise put it at some = default position. Another possibility is that the display-monitor-attributes-list includes = a list of all frame belonging to a particular monitor. If that monitor = is still available, restore the frame there, otherwise not. Jan D.