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: Proposed function: x-display-usable-bounds Date: Mon, 03 Dec 2007 10:40:31 +0100 Message-ID: <4753CF0F.8080101@swipnet.se> References: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> 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: ger.gmane.org 1196674861 22573 80.91.229.12 (3 Dec 2007 09:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 09:41:01 +0000 (UTC) Cc: emacs- devel To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 10:41:11 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iz7nW-0002Lc-C0 for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 10:41:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iz7nG-0000D4-2h for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 04:40:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iz7n4-00005N-Qm for emacs-devel@gnu.org; Mon, 03 Dec 2007 04:40:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iz7n4-0008Vw-2u for emacs-devel@gnu.org; Mon, 03 Dec 2007 04:40:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iz7n3-0008VU-He for emacs-devel@gnu.org; Mon, 03 Dec 2007 04:40:37 -0500 Original-Received: from av11-1-sn2.hy.skanova.net ([81.228.8.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iz7n2-0002Nr-Ut for emacs-devel@gnu.org; Mon, 03 Dec 2007 04:40:37 -0500 Original-Received: by av11-1-sn2.hy.skanova.net (Postfix, from userid 502) id 07FBE38C35; Mon, 3 Dec 2007 10:40:36 +0100 (CET) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av11-1-sn2.hy.skanova.net (Postfix) with ESMTP id D73C4384D9; Mon, 3 Dec 2007 10:40:35 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id B774D37E46; Mon, 3 Dec 2007 10:40:35 +0100 (CET) User-Agent: Thunderbird 2.0.0.9 (X11/20071031) In-Reply-To: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84554 Archived-At: Adrian Robert skrev: > Hi, > > On the Mac platform both the Carbon and Cocoa ports face the problem > of determining where on the display to place new frames. For this it > is helpful not just to know the overall dimensions of the display > (x-display-pixel-width,height) but also the portion of the display > that is not obscured/reserved for the dock and menubar. I assume this > issue comes up as well on Windows (task bar) and on X desktops such as > Gnome or KDE. > Gnome and KDE follow the Extended windowmanager hints specification. It defines a property on the root window which gives the "usable" display area. http://freedesktop.org/wiki/Specifications/wm-spec The implementation for KDE and Gnome could easily be done in elisp. Does your patch handle multiple desktops/screens? > The Carbon port was defining its own function to return (top left > width height) for the usable screen area. Since it seems relevant for > all platforms, it would seem appropriate to name this function with an > x- prefix, e.g., x-display-usable-bounds, and define it for all > platforms. As a placeholder implementation, a list (0 0 > x-display-pixel-width x-display-pixel-height) could be returned. See > the thread below for the current Carbon and Cocoa implementations. > > http://sourceforge.net/mailarchive/forum.php?thread_name=2CE05DE2-B276-4F80-918B-9C1A28DF169A%40gmail.com&forum_name=emacs-app-dev- > ERROR Either your mailing list name was misspelled or the list you specified does not exist. If you believe this message to be in error, there may be a temporary outage of Mailing List Archive services. Please consult Site Status for more information.