From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: w32 fullscreen toggling Date: Thu, 15 Oct 2009 11:19:09 +0200 Message-ID: <4AD6E90D.3080106@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255598447 3037 80.91.229.12 (15 Oct 2009 09:20:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 09:20:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Erik Charlebois Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 15 11:20:39 2009 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 1MyMVj-0007d2-90 for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2009 11:20:39 +0200 Original-Received: from localhost ([127.0.0.1]:54611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyMVi-0008Hl-JZ for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2009 05:20:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyMUT-0007ut-Oo for emacs-devel@gnu.org; Thu, 15 Oct 2009 05:19:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyMUO-0007sw-Ih for emacs-devel@gnu.org; Thu, 15 Oct 2009 05:19:20 -0400 Original-Received: from [199.232.76.173] (port=34126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyMUO-0007sr-5S for emacs-devel@gnu.org; Thu, 15 Oct 2009 05:19:16 -0400 Original-Received: from proxy3.bredband.net ([195.54.101.73]:35175) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyMUN-000145-QN for emacs-devel@gnu.org; Thu, 15 Oct 2009 05:19:16 -0400 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy3.bredband.net (7.3.140.3) id 4AD3E1BA00102EB1 for emacs-devel@gnu.org; Thu, 15 Oct 2009 11:19:12 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtJZAB6G1kpV4S1uPGdsb2JhbACBUogDkTYBAQEBN74bhDAEgVs X-IronPort-AV: E=Sophos;i="4.44,565,1249250400"; d="scan'208";a="54136029" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph2.telenor.se with ESMTP; 15 Oct 2009 11:19:12 +0200 Original-Received: from zeplin.local (unknown [93.182.180.71]) by coolsville.localdomain (Postfix) with ESMTPSA id 9DF757FA07B; Thu, 15 Oct 2009 11:19:11 +0200 (CEST) User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:116164 Archived-At: You should make this work with the frame parameter fullscreen. Jan D. Erik Charlebois skrev: > Attached is a patch to add a function for toggling a frame between > fullscreen and windowed state, much like IE8 and Visual Studio's > fullscreen modes. A fullscreen frame covers the taskbar and has no > window border or title. This provides a builtin way of achieving what > darkroom-mode does (darkroom-mode's w32-fullscreen does not cover the > taskbar though). > > To the best of my googling, I found that the Microsoft-supported way of > achieving this effect is to have a window without the WS_CAPTION or > WS_THICKFRAME style and set its size to the exact screen resolution of > the monitor it is to be fullscreened on. I've tested this on XP, Vista > and Win7 in single and dual monitor configurations. Resolution changes > or Emacs-driven position/size changes (e.g. toggling scroll-bar-mode or > menu-mode) are correctly handled (the frame remains fullscreen). If a > secondary monitor is disconnected, any fullscreen frames on that screen > are punted back to window mode so they look normal when Windows > repositions them. > > -- > Erik Charlebois