From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Adrian Robert" Newsgroups: gmane.emacs.devel Subject: Proposed function: x-display-usable-bounds Date: Mon, 3 Dec 2007 11:43:58 +0300 Message-ID: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196671456 12617 80.91.229.12 (3 Dec 2007 08:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 08:44:16 +0000 (UTC) To: "emacs- devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 09:44:26 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 1Iz6ue-0004MB-UD for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 09:44:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iz6uO-0005uu-Fj for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 03:44:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iz6uJ-0005uj-P6 for emacs-devel@gnu.org; Mon, 03 Dec 2007 03:44:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iz6uI-0005uN-8l for emacs-devel@gnu.org; Mon, 03 Dec 2007 03:44:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iz6uI-0005uK-1B for emacs-devel@gnu.org; Mon, 03 Dec 2007 03:44:02 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iz6uH-0001XL-Gj for emacs-devel@gnu.org; Mon, 03 Dec 2007 03:44:01 -0500 Original-Received: from rv-out-0910.google.com ([209.85.198.190]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iz6uF-00081x-SE for emacs-devel@gnu.org; Mon, 03 Dec 2007 03:44:00 -0500 Original-Received: by rv-out-0910.google.com with SMTP id c27so3575292rvf for ; Mon, 03 Dec 2007 00:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=gKk7IMN4WRhephtcUsDtYalx8q+1u/4yPAuTdRJAIbI=; b=QAv0jHGARLL+3+Z9PnSMGxUVjITPwDU0KR5rqLoqYaf7O9xAeJwJaaNLegPw8S6oXKA8+CkKjOmkfraz9Oe/szOM3da51/NFinb6DBmZOhZVme/j0EJJmm68ht8V0QWZMb/aYmVzG+/TU0j0Wqp9SJMW7lIS/Fp4TDEJZKu/g7A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nWvxXsDNXtWFJ8v8BA3WZWLol12dR5DU2VKLGfVX00zu4dCgdDfBDfg7SVQgv6Rl1cTjbz2AmSHER5iOfTeME2azOr8sOZtsXmuarjnqJjCkxJMneW5ReslvFXT9J6sFQWx9rUzehHJejoLpOhF8vuANyHHqnQDFBeGdmBncoaE= Original-Received: by 10.141.26.6 with SMTP id d6mr5446202rvj.1196671438024; Mon, 03 Dec 2007 00:43:58 -0800 (PST) Original-Received: by 10.141.84.8 with HTTP; Mon, 3 Dec 2007 00:43:58 -0800 (PST) Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:84548 Archived-At: 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. 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-