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 13:36:40 +0200 Message-ID: <200808191336.41091.tassilo@member.fsf.org> References: <87wsidphul.fsf@kanis.fr> <200808191226.33688.tassilo@member.fsf.org> 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 1219145933 28440 80.91.229.12 (19 Aug 2008 11:38:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 11:38:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 19 13:39:46 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 1KVPYo-0002fx-Oz for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 13:39:39 +0200 Original-Received: from localhost ([127.0.0.1]:54374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVPXr-0003yr-Mr for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 07:38:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVPXe-0003v7-Lv for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:38:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVPXc-0003uL-SE for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:38:25 -0400 Original-Received: from [199.232.76.173] (port=41264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVPXc-0003uD-LY for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:38:24 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:18767) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVPXc-0001eN-Bd for emacs-devel@gnu.org; Tue, 19 Aug 2008 07:38:24 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 9CC747898222 for ; Tue, 19 Aug 2008 13:38:23 +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 24108-08 for ; Tue, 19 Aug 2008 13:38:22 +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 1D4607897F05 for ; Tue, 19 Aug 2008 13:38:22 +0200 (CEST) User-Agent: KMail/1.10.0 (Linux/2.6.26-gentoo-r1; KDE/4.1.62; x86_64; ; ) In-Reply-To: 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:102643 Archived-At: On Tuesday 19 August 2008 13:11:45 Ren=E9 Kyllingstad wrote: Hi Ren=E9, > > --8<---------------cut here---------------start------------->8--- > > (defun toggle-frame-fullscreen () > > "Toggle the fullscreen status of the current frame." > > (interactive) > > (if (eq (frame-parameter nil 'fullscreen) 'fullboth) > > (set-frame-parameter nil 'fullscreen nil) > > (set-frame-parameter nil 'fullscreen 'fullboth))) > > --8<---------------cut here---------------end--------------->8--- > > As the OP said, it isn't implemented as fullscreen on win32. 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=20 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=20 the | screen. `---- In my opinion "size of the screen" !=3D "size of the screen excluding taskbar and stuff". So I'd consider that w32 behavior a bug. > I didn't find a list of what frame-parameters are recognized, and > which values, but fullboth indicates to me that we're actually talking > about maximize, and the options are horizontal, vertical, both, in > classic X11 VM style. As I pasted above, the docs talk about "size of the screen". And it seems that this is not implemented for w32 currently. There're other frame parameters like height and width, but that won't get rid of the taskbar and window decorations. > This is AFAICT the ambiguity the OP was wanted to address. Probably. So the real request would be to make the fullscreen parameter work as documented on w32. Then my toggle could be used as UI for that feature. > How would you request maximize if fullboth is fullscreen? A maximize > frame parameter? There seems to be no such parameter. You could use the height, width, left and top parameters to move the frame to position 0,0 and resize it to the maximum screen estate excluding taskbars, docs and such stuff. Then you'd need the size a maximized window has as pixel values, because I see no possibility to get those informations from inside emacs. Bye, Tassilo