unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: handa@m17n.org, emacs-devel@gnu.org
Subject: Re: override_redirect of X Window System
Date: Sun, 5 Oct 2003 19:11:53 +0200 (MEST)	[thread overview]
Message-ID: <200310051756.h95HuXmh020222@stubby.bodenonline.com> (raw)
In-Reply-To: <20030917.114532.18698789.kazu@iijlab.net> from "Kazu Yamamoto (山本和彦)" at sep 17, 2003 11:45:32

> 
> Hello,
> 
> I have one request for Emacs 21.
> 
> I'm now creating a presentation tool for Emacs 21. One problem is that
> there is no way to set one frame attribute "override_redirect" to
> True.
> 
> Imagine that we try to create a frame which overs the entire screen
> for presentation. Since we can't set override_redirect to True, the
> created frame can't cover the entire screen unders some window
> managers including gnome.
> 
> Thus I would like to a method to set override_redirect to True. One
> idea is extend modify-frame-parameters to handle override_redirect.

I have made a function that can work as a base for implementing a
package for extended window manager hints (EWMH).  However, I am
currently only able to do Emacs stuff during weekends (traveling during
the week), so I have just made a client event sending function you can
use.  For example, to set fullscreen with EWMH, do:

(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
                       '(2 "_NET_WM_STATE_FULLSCREEN" 0))

2 in the list is "toggle".  You can also use 1 for "add" and 0 for
"remove".  See the section on _NET_WM_STATE here for other usages:
http://pdx.freedesktop.org/Standards/wm-spec/1.3/

Is this enough for your needs?

Here is the documentation for the function:
(x-send-client-message DISPLAY DEST FROM MESSAGE-TYPE FORMAT VALUES)

Send a client message of MESSAGE-TYPE to window DEST on DISPLAY.

For DISPLAY, specify either a frame or a display name (a string).
If DISPLAY is nil, that stands for the selected frame's display.
DEST may be an integer, in which case it is a Window id.  The value 0 may
be used to send to the root window of the DISPLAY.
If DEST is a frame the event is sent to the outer window of that frame.
Nil means the currently selected frame.
If DEST is the string "PointerWindow" the event is sent to the window that
contains the pointer.  If DEST is the string "InputFocus" the event is
sent to the window that has the input focus.
FROM is the frame sending the event.  Use nil for currently selected frame.
MESSAGE-TYPE is the name of an Atom as a string.
FORMAT must be one of 8, 16 or 32 and determines the size of the values in
bits.  VALUES is a list of integer and/or strings containing the values to
send.  If a value is a string, it is converted to an Atom and the value of
the Atom is sent.  If more values than fits into the event is given,
the excessive values are ignored.

	Jan D.

  parent reply	other threads:[~2003-10-05 17:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17  2:45 override_redirect of X Window System Kazu Yamamoto
2003-09-18 11:05 ` Richard Stallman
2003-09-19 15:24 ` Jan D.
2003-09-22 17:32   ` Mike Hearn
2003-09-24 17:14     ` Jan D.
2003-09-24 17:40       ` Mike Hearn
2003-09-24 18:17         ` Jan D.
2003-09-25  9:56           ` Mike Hearn
2003-09-25 21:08             ` Jan D.
2003-09-25 22:06               ` Kim F. Storm
2003-10-05 17:11 ` Jan D. [this message]
2003-10-08  0:04   ` Kazu Yamamoto

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=200310051756.h95HuXmh020222@stubby.bodenonline.com \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /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).