[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble with toggling fullscreen mode
From: |
Fabrice Niessen |
Subject: |
Re: Trouble with toggling fullscreen mode |
Date: |
Mon, 26 Oct 2009 10:54:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi Alex,
Alex Bennee wrote:
> I'm having trouble with toggling full-screen mode on my netbook. [...]
>
> My emacs version is: "GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+
> Version 2.16.6) of 2009-09-29 on x86-7.fedora.phx.redhat.com"
This is what I'm using under Ubuntu:
--8<---------------cut here---------------start------------->8---
(defun toggle-full-screen ()
"Toggle between full screen and partial screen display on X11;
courtesy of http://www.emacswiki.org/cgi-bin/wiki/FullScreen"
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_FULLSCREEN" 0)))
(global-set-key (kbd "C-c z") 'toggle-full-screen)
--8<---------------cut here---------------end--------------->8---
Does this work for you?
Fabrice
--
Fabrice Niessen
Search the Web with "My Google Search Tools" on http://www.MyGooglest.com