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: Wed, 15 Jul 2015 17:57:00 +0300 Message-ID: <83oajd79kz.fsf@gnu.org> References: <55A60508.7090903@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436972244 4754 80.91.229.3 (15 Jul 2015 14:57:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 14:57:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 15 16:57:12 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 1ZFO7U-0003aO-11 for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2015 16:57:12 +0200 Original-Received: from localhost ([::1]:36277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFO7S-0001R6-Ot for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2015 10:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFO7P-0001QI-Ix for emacs-devel@gnu.org; Wed, 15 Jul 2015 10:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFO7D-0004Do-KQ for emacs-devel@gnu.org; Wed, 15 Jul 2015 10:57:03 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:60041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFO7D-0004DJ-CT for emacs-devel@gnu.org; Wed, 15 Jul 2015 10:56:55 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NRJ00I00ATV9J00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Wed, 15 Jul 2015 17:56:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRJ00IK5AUT6450@a-mtaout23.012.net.il>; Wed, 15 Jul 2015 17:56:53 +0300 (IDT) In-reply-to: <55A60508.7090903@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.175 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:187882 Archived-At: > Date: Wed, 15 Jul 2015 09:00:24 +0200 > From: martin rudalics > > My intention is to remove this difference and make the "coordinate > origin" for all systems the top/left corner of the root window of the > respective frame. Practically, this is what the GTK+ build does now. This would mean the tool bar window (it is a real window drawn by Emacs in non-GTK builds) will yield negative frame-relative Y coordinates, won't it? We didn't have such calamity until now, and even if it did work, it would be confusing, I think. Also, what about the menu bar, in particular on TTY frames? Will the screen estate used for the menu bar also have negative coordinates? And don't forget that some modes, like gdb-mi, simulate the tool bar below the menu bar on TTY frames -- what about those? Perhaps we should do it the other way around: make the coordinates in the GTK build be measured from the upper-left corner of the frame, including the tool bar? I think this will be more natural and easy to deal with.