From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new API to fullscreen Date: Tue, 19 Aug 2008 14:47:49 +0200 Message-ID: <200808191447.49442.tassilo@member.fsf.org> References: <87wsidphul.fsf@kanis.fr> <200808191336.41091.tassilo@member.fsf.org> <87bpzpp655.fsf@kanis.fr> 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 1219150204 11014 80.91.229.12 (19 Aug 2008 12:50:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 12:50:04 +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:50:57 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 1KVQfd-0003sf-72 for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 14:50:45 +0200 Original-Received: from localhost ([127.0.0.1]:59461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQeg-0003wk-5w for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 08:49:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVQeU-0003ot-2V for emacs-devel@gnu.org; Tue, 19 Aug 2008 08:49:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVQeS-0003nY-PR for emacs-devel@gnu.org; Tue, 19 Aug 2008 08:49:33 -0400 Original-Received: from [199.232.76.173] (port=53849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQeS-0003nR-J9 for emacs-devel@gnu.org; Tue, 19 Aug 2008 08:49:32 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:18274) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVQeS-0002Hq-Cp for emacs-devel@gnu.org; Tue, 19 Aug 2008 08:49:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 700CC7897F02 for ; Tue, 19 Aug 2008 14:49:31 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09945-02 for ; Tue, 19 Aug 2008 14:49:30 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.localnet (unknown [141.26.67.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 806AE7897E49 for ; Tue, 19 Aug 2008 14:49:30 +0200 (CEST) User-Agent: KMail/1.10.0 (Linux/2.6.26-gentoo-r1; KDE/4.1.62; x86_64; ; ) In-Reply-To: <87bpzpp655.fsf@kanis.fr> Content-Disposition: inline X-Virus-Scanned: amavisd-new at uni-koblenz.de 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:102650 Archived-At: On Tuesday 19 August 2008 13:59:34 Ivan Kanis wrote: > > ,----[ (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. Hm, in KDE it's the same. For fullwidth and fullheight this make sense, because I don't think anyone wants to have a frame which doesn't use the full screen but is on top of the task bar. fullboth in KDE makes use of the whole visual screen and removes the window decorations as well. I think that's a quite sensible behavior. > So 'screen' in the do really means usable desktop space. If you > follow the logic 'fullboth' should be maximize minus desktop toolbar. Well, I wouldn't call that fullscreen. And the NETWM spec doesn't either. ,----[ NetWM-1.4-draft2 spec ] | _NET_WM_STATE_FULLSCREEN indicates that the window should fill the | entire screen and have no window decorations. Additionally the Window | Manager is responsible for restoring the original geometry after a | switch from fullscreen back to normal window. For example, a | presentation program would use this hint. `---- > 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. DTRT is always very good. ;-) Now we only have to agree on TRT. IMHO there's no such thing as fullscreen width or fullscreen height, only fullscreen as described by the NetWM spec. The other values the fullscreen frame parameter allows are indeed vertical and horizontal maximizations, but they don't work correctly, because you cannot un-maximize to the old size again. A (set-frame-parameter nil 'fullscreen 'fullwidth) followed by (set-frame-parameter nil 'fullscreen nil) won't change the frame size anymore, at least not here. Bye, Tassilo