From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Proposed function: x-display-usable-bounds Date: Mon, 03 Dec 2007 23:36:56 +0900 (JST) Message-ID: <20071203.233656.31233115.mituharu@math.s.chiba-u.ac.jp> References: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> <4753CF0F.8080101@swipnet.se> <55f7df060712030434x2c2b20edg1ac35d6a5474cae2@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1196692681 17540 80.91.229.12 (3 Dec 2007 14:38:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 14:38:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 15:38:09 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 1IzCQy-0000by-CK for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 15:38:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzCQi-0007K4-4A for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 09:37:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzCQN-000711-5u for emacs-devel@gnu.org; Mon, 03 Dec 2007 09:37:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzCQL-0006zo-Oe for emacs-devel@gnu.org; Mon, 03 Dec 2007 09:37:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzCQL-0006zi-Fk for emacs-devel@gnu.org; Mon, 03 Dec 2007 09:37:29 -0500 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzCQK-0006xw-I6 for emacs-devel@gnu.org; Mon, 03 Dec 2007 09:37:29 -0500 Original-Received: from localhost (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 9554C2C40 for ; Mon, 3 Dec 2007 23:37:15 +0900 (JST) In-Reply-To: <55f7df060712030434x2c2b20edg1ac35d6a5474cae2@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 22.1 / Mule 5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) 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:84568 Archived-At: >>>>> On Mon, 3 Dec 2007 15:34:57 +0300, "Adrian Robert" said: > On Dec 3, 2007 12:40 PM, Jan Dj=E4rv wrote: >> = >> The implementation for KDE and Gnome could easily be done in elisp. >> Does your patch handle multiple desktops/screens? > For the Cocoa port (unsure about Carbon), screens throughout are > currently considered separate display areas; dimensions reported for > this and other x-display- functions correspond to the screen the > frame being asked about is on, or the main screen (where menubar and > dock are) if this information is not given. (Other behaviors are > possible, but not necessarily preferable.) The behavior of x-display-pixel-width/height in the Carbon port was changed relatively recently (March, 2007): it now reports the dimensions of the whole screen because this behavior is more consistent with the X11 build. http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-03/msg00420.ht= ml >> Isn't that the duty of the window manager? > On the Mac (or GNUstep) there is no auto-placement of windows. The Carbon(+AppKit) ports place a new frame to the cascading position with respect to the selected frame if the position is not specified explicitly. Both Carbon and Cocoa have support for this functionality (RepositionWindow and -[NSWindow cascadeTopLeftFromPoint:], respectively). Both of them also do rollover so that more than half of the window (Carbon) or whole part of the window (Cocoa) becomes visible. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp