unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Erik Charlebois <erikcharlebois@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: w32 fullscreen toggling
Date: Thu, 15 Oct 2009 11:19:09 +0200	[thread overview]
Message-ID: <4AD6E90D.3080106@swipnet.se> (raw)
In-Reply-To: <b1d641860910150004w669f4f7fo96882cb8fcebcacb@mail.gmail.com>

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




  reply	other threads:[~2009-10-15  9:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15  7:04 w32 fullscreen toggling Erik Charlebois
2009-10-15  9:19 ` Jan Djärv [this message]
2009-10-15 10:31   ` Lennart Borgman
2009-10-15 15:03     ` Jan Djärv
2009-10-15 18:34       ` Lennart Borgman
2009-10-15 20:18         ` Erik Charlebois
2009-10-15 21:13 ` Eli Zaretskii
2009-10-15 21:38   ` Erik Charlebois
2009-10-16  7:35     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD6E90D.3080106@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=erikcharlebois@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).