From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: w32 fullscreen toggling Date: Thu, 15 Oct 2009 12:31:13 +0200 Message-ID: References: <4AD6E90D.3080106@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255603095 17310 80.91.229.12 (15 Oct 2009 10:38:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 10:38:15 +0000 (UTC) Cc: Erik Charlebois , emacs-devel@gnu.org To: =?UTF-8?Q?Jan_Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 15 12:38:06 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 1MyNid-00047i-Nu for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2009 12:38:04 +0200 Original-Received: from localhost ([127.0.0.1]:36543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyNic-00060g-W8 for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2009 06:38:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyNcV-0002mz-73 for emacs-devel@gnu.org; Thu, 15 Oct 2009 06:31:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyNcP-0002hI-CE for emacs-devel@gnu.org; Thu, 15 Oct 2009 06:31:41 -0400 Original-Received: from [199.232.76.173] (port=38773 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyNcN-0002gS-Uk for emacs-devel@gnu.org; Thu, 15 Oct 2009 06:31:36 -0400 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:38244) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyNcL-0003fk-Ti for emacs-devel@gnu.org; Thu, 15 Oct 2009 06:31:34 -0400 Original-Received: by yxe29 with SMTP id 29so625752yxe.14 for ; Thu, 15 Oct 2009 03:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=VuGcS5rAp72X/ozEQLVpUCU+vPH3f4zVNo0GvrlxAyU=; b=cIFTnBPewUO8KPkGMaKJnEsH/eiZmFsEQQ2uzSlzecd4CyJymqVBnvBmxO6mBUIBDs aepKc84/VeHbUS+OhrRmnLkZHO3udqA2FPTy5OFTb/G7b4gh8gisyuzTYB8k4kjXhr3p 7c5KNlqx64ss2P+Lk1e0GIJEWag/Uke0ZWp7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=MKQelvEILfV/cbQO0QcLLQZtq5CPFcbF2cEkIy8J7qzIvMRu7lzHZM/ymBhlw7H6e5 C85pspBh+AbTjI+xDGCSlhyTiVxRBD5+8A/47o2p3OgXRq9NgX0PvXqUF0uPTpD5hBkh sTqJVDwQF0nUuwoOxYbQKpb6j0COQaFhW+zQw= Original-Received: by 10.100.55.18 with SMTP id d18mr8662686ana.80.1255602693132; Thu, 15 Oct 2009 03:31:33 -0700 (PDT) In-Reply-To: <4AD6E90D.3080106@swipnet.se> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116165 Archived-At: On Thu, Oct 15, 2009 at 11:19 AM, Jan Dj=C3=A4rv wrote= : > You should make this work with the frame parameter fullscreen. I think there need to be a way to distinguish between "maximized" and "fullscreen". I do not think Emacs tries to distinguish between them at all currently, or am I wrong? > 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 fullscr= een >> 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). >> =C2=A0To the best of my googling, I found that the Microsoft-supported w= ay 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 t= he >> monitor it is to be fullscreened on. I've tested this on XP, Vista and W= in7 >> 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 > > >