From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: improving multi-monitor support in x11/carbon Date: Sun, 03 Feb 2008 20:14:40 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1202066422 26128 80.91.229.12 (3 Feb 2008 19:20:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Feb 2008 19:20:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 03 20:20:43 2008 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 1JLkOP-0000Bx-61 for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2008 20:20:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLkNw-0006FH-KS for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2008 14:20:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLkNu-0006F4-14 for emacs-devel@gnu.org; Sun, 03 Feb 2008 14:20:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLkNr-0006Es-Nw for emacs-devel@gnu.org; Sun, 03 Feb 2008 14:20:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLkNr-0006Ep-H1 for emacs-devel@gnu.org; Sun, 03 Feb 2008 14:20:07 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JLkNr-0005yS-67 for emacs-devel@gnu.org; Sun, 03 Feb 2008 14:20:07 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JLkNm-0006vK-SB for emacs-devel@gnu.org; Sun, 03 Feb 2008 19:20:02 +0000 Original-Received: from 88-149-138-4.dynamic.ngi.it ([88.149.138.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Feb 2008 19:20:02 +0000 Original-Received: from wavexx by 88-149-138-4.dynamic.ngi.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Feb 2008 19:20:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 88-149-138-4.dynamic.ngi.it User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) 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:88099 Archived-At: Hi everyone. Currently emacs 21.x (and 22) lacks decent support for multi-monitors setups. x-display-* functions simply return the whole viewable area which spans across several monitors. This breaks maximization and window positioning: the window will cover all monitors (and sometimes not correcly) and will not always position on the same monitor. There has been some discussion already, here: http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-01/msg00165.html http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00006.html and here: http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-03/msg00412.html I fully agree with Yamamoto Mitsuharu here: a clear designed api is needed: - there may be more than a single monitor - placement and size may not be linear or constant - the origin can be anywhere, not simply at +0+0 - viewable area may not be the the whole screen: - on mac there is a menu bar on the main monitor only - on windows there's the start panel, which may or may not occupy space (and possibly other issues that I forgot). Yet, the current behavior needs some fixing in order to be of any use. I think that x-display-* functions should return, for the time being, the size of the _current_ monitor, the one on which the current frame is shown. Is that feasible? Thanks