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 21:10:07 +0300 Message-ID: <83twt264g0.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> <83y4if53s8.fsf@gnu.org> <55A904C8.2070106@gmx.at> <83wpxy6f0x.fsf@gnu.org> <55A94234.7070600@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1437156636 5347 80.91.229.3 (17 Jul 2015 18:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 18:10:36 +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 20:10:28 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 1ZGA5a-0006sD-V1 for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 20:10:27 +0200 Original-Received: from localhost ([::1]:45874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA5a-0000KR-28 for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 14:10:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA5D-0008PX-Sy for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGA58-0004Mc-53 for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:10:03 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGA57-0004M8-TB for emacs-devel@gnu.org; Fri, 17 Jul 2015 14:09:58 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NRN008008GEZ900@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 17 Jul 2015 21:09:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRN0086F94KWO80@a-mtaout21.012.net.il>; Fri, 17 Jul 2015 21:09:56 +0300 (IDT) In-reply-to: <55A94234.7070600@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:187931 Archived-At: > Date: Fri, 17 Jul 2015 19:58:12 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > Why does it matter if we get that accurately, in builds where we don't > > manage those decorations? We might as well approximate that with some > > reasonable value, and be done, no? > > For example, on Windows I need accurate dimensions of decorations to > emulate fullheight and fullwidth fullscreen modes. What do you mean by "emulate"? AFAIK, these are supported on Windows without any need for emulation. > And if I want to display a tooltip at a certain position within a > window I need them as well. Why do you need _frame_ relative coordinates to display something at _window_ relative position? > >> This would imply that the tool bar (and maybe even the menu bar) are > >> part of the root window. > > > > Which on Windows, it is, AFAIK. > > No. The root window is beneath the tool bar window separated from the > latter by the internal border. Strange. > >> >> BTW, has Windows 7 an 8 pixel wide border by default? > >> > > >> > How can I know? > >> > >> What does M-: (x-frame-geometry) give for you? > > > > This is on XP: > > > > ((frame-position -4 . -4) (frame-outer-size 1928 . 1088) (external-border-size 4 . 4) (title-height . 19) (menu-bar-external . t) (menu-bar-size 1920 . 19) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1920 . 36) (frame-inner-size 1920 . 1042)) > > This doesn't help me to find out why your `window-absolute-pixel-edges' > returns (-8 28 1912 984) on Windows 7. I need your value for Windows 7. Will report when I have a chance.