From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Kanis Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new API to fullscreen Date: Tue, 19 Aug 2008 13:59:34 +0200 Message-ID: <87bpzpp655.fsf@kanis.fr> References: <87wsidphul.fsf@kanis.fr> <200808191226.33688.tassilo@member.fsf.org> <200808191336.41091.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219147257 542 80.91.229.12 (19 Aug 2008 12:00:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 12:00:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 19 14:01:49 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 1KVPtR-00026h-Gh for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 14:00:57 +0200 Original-Received: from localhost ([127.0.0.1]:35081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVPsU-00087T-IL for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 07:59:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVPsQ-00087O-Go for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:59:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVPsP-00087C-7S for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:59:54 -0400 Original-Received: from [199.232.76.173] (port=37646 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVPsP-000879-0J for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:59:53 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:40414 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 1KVPsO-0006Mp-GR for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:59:52 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KVPsI-0005pq-8V for emacs-devel@gnu.org; Tue, 19 Aug 2008 11:59:46 +0000 Original-Received: from pir44-1-89-87-99-142.dsl.club-internet.fr ([89.87.99.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2008 11:59:46 +0000 Original-Received: from expire-by-2008-08-24 by pir44-1-89-87-99-142.dsl.club-internet.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2008 11:59:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pir44-1-89-87-99-142.dsl.club-internet.fr User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:6RWgcGsXNE9V/oTptODq4d/7nVc= 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:102645 Archived-At: Tassilo Horn writes: > Yes, but according to the docs it should. > > ,----[ (info "(elisp)Size Parameters") ] > | `fullscreen' > | Specify that width, height or both shall be set to the size of the > | screen. The value `fullwidth' specifies that width shall be the > | size of the screen. The value `fullheight' specifies that height > | shall be the size of the screen. The value `fullboth' specifies > | that both the width and the height shall be set to the size of the > | screen. > `---- > > In my opinion "size of the screen" != "size of the screen excluding > taskbar and stuff". So I'd consider that w32 behavior a bug. Well 'fullheight' does screen height minus taskbar in Gnome. So 'screen' in the do really means usable desktop space. If you follow the logic 'fullboth' should be maximize minus desktop toolbar. After looking at the code for many days, it could be simplified by creating a new API for fullscreen that just DTRT on X, Mac and Windows. I have made a patch for Windows that I sent on this list. There is a function called mac-toggle-max-window on Carbon Emacs that works. I am volunteering the time it takes to do it on 22 or 23 if we can agree on something. The code would be simpler once it's finished: no more hook functions on the C layer. -- Ivan http://kanis.fr Never attribute to malice what can adequately be explained by stupidity. -- Robert J. Hanlon