From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Coordinates and Windows Date: Fri, 17 Jul 2015 16:09:43 +0300 Message-ID: <83y4if53s8.fsf@gnu.org> References: <55A60508.7090903@gmx.at> <83oajd79kz.fsf@gnu.org> <55A6A4A1.1030307@gmx.at> <83fv4p6wqp.fsf@gnu.org> <55A759D1.5090001@gmx.at> <83bnfc6um1.fsf@gnu.org> <55A7F68A.3040003@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1437138604 19346 80.91.229.3 (17 Jul 2015 13:10:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 13:10:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 15:09:51 2015 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 1ZG5Oh-00056T-3J for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 15:09:51 +0200 Original-Received: from localhost ([::1]:44749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5Og-0002v6-Ap for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 09:09:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5OU-0002uy-Cq for emacs-devel@gnu.org; Fri, 17 Jul 2015 09:09:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG5OQ-0003LB-Bq for emacs-devel@gnu.org; Fri, 17 Jul 2015 09:09:38 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:56031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5OQ-0003Jj-4Z for emacs-devel@gnu.org; Fri, 17 Jul 2015 09:09:34 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NRM00900UL7T200@mtaout24.012.net.il> for emacs-devel@gnu.org; Fri, 17 Jul 2015 16:01:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRM005S7UTQD150@mtaout24.012.net.il>; Fri, 17 Jul 2015 16:01:03 +0300 (IDT) In-reply-to: <55A7F68A.3040003@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 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:187923 Archived-At: > Date: Thu, 16 Jul 2015 20:23:06 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > I don't see why. Having the top-left corner of the frame as the > > reference point sounds simpler and more clear to me, and allows one to > > use it in the same way in all the builds. No? > > If by top-left corner you intend the top-left position of the menu bar, > or if that's absent that of the top/left tool bar, or if that's absent > too that of the internal border, or if that is absent too that of the > root window Yes. > I agree. Just that it's not all too trivial to calculate it. In pixels or in rows? > >> To illustrate how little care has been applied to this so far, consider > >> the function `window-absolute-pixel-edges'. With a maximized frame on > >> Windows XP this function returns (-4 -4 1676 964) here. > > > > I get (-8 28 1912 984) on Windows 7 and (-4 32 1916 1022) on XP, so at > > least the Y coordinate seems OK. > > Just 32 pixels for title, menu, and tool bar? Maybe I'm confused, but doesn't that include only the title and menu on Windows? Or maybe just the title? > BTW, has Windows 7 an 8 pixel wide border by default? How can I know? > No, off-screen decorations are a Windows feature. What I meant is that > Gtk has some established, working features that albeit never worked on > Windows. And I'm afraid to break these features. Isn't that what development is about -- breaking features and then fixing the breakage?