From: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: Patrick Drechsler <patrick@pdrechsler.de>, emacs-devel@gnu.org
Subject: Re: fullscreen and gnome
Date: Fri, 15 Dec 2006 21:45:25 +0100 [thread overview]
Message-ID: <45830965.8060208@swipnet.se> (raw)
In-Reply-To: <m38xh9jcut.fsf@lugabout.jhcloos.org>
James Cloos skrev:
>>>>>> "Patrick" == Patrick Drechsler <patrick@pdrechsler.de> writes:
>
> Patrick> Thank you Jan, your example code works fine. But as mentioned
> Patrick> in my original post I was looking for a solution which is
> Patrick> independent of the window manager/OS in use. I guess I'll
> Patrick> just stick with the --geometry parameter.
>
> The technique Jan used for maximizing is the same as the technique
> that the -fs flag uses to do full screen. Both just set the window
> manager hints for the specified display options.
>
> The _NET_WM_STATE hints are standardized. All modern window managers
> should use them.
>
> As such, they should be supported by everthing that you use.
>
> You can run this on each platform to confirm:
>
> :; xlsatoms |egrep _NET_WM
>
> And you can use xprop to see the settings for any given window. As an
> example, I get this for the emacs frame I'm writing this in:
>
> ,----<xprop of an emacs frame>
> | :; xprop
> | _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
> | XdndAware(ATOM) = BITMAP
> | _ICEWM_TRAY(CARDINAL) = 0
> | _WIN_LAYER(CARDINAL) = 4
> | _NET_WM_DESKTOP(CARDINAL) = 0
> | _WIN_WORKSPACE(CARDINAL) = 0
> | WM_STATE(WM_STATE):
> | window state: Normal
> | icon window: 0x0
> | _NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
> | _WIN_STATE(CARDINAL) = 12, 63
> | WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, WM_SAVE_YOURSELF
> | WM_CLIENT_LEADER(WINDOW): window id # 0xe00058
> | WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
> | WM_CLASS(STRING) = "emacs", "Emacs"
> | WM_HINTS(WM_HINTS):
> | Client accepts input or input focus: True
> | Initial state is Normal State.
> | bitmap id # to use for icon: 0xe00062
> | bitmap id # of mask for icon: 0xe00064
> | WM_NORMAL_HINTS(WM_SIZE_HINTS):
> | program specified size: 1594 by 1124
> | program specified minimum size: 34 by 2
> | program specified resize increment: 8 by 17
> | window gravity: NorthWest
> | WM_CLIENT_MACHINE(STRING) = "lugabout"
> | WM_ICON_NAME(STRING) = "*wide reply to Patrick Drechsler*"
> | WM_NAME(STRING) = "*wide reply to Patrick Drechsler*"
> `----
>
> As you can see, I have the window maximized (I used the wm's button on
> the windows title bar to maximize it).
>
> I'd expect that you will find that Jan's solution will Just Work.
Well, there are always the old WM:s that don't support _NET_*.
Jan D.
next prev parent reply other threads:[~2006-12-15 20:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 0:57 fullscreen and gnome Patrick Drechsler
2006-12-14 1:30 ` Leo
2006-12-14 2:49 ` Patrick Drechsler
2006-12-14 7:12 ` Jan Djärv
2006-12-14 10:51 ` Patrick Drechsler
2006-12-14 12:52 ` Jan Djärv
2006-12-14 13:22 ` Patrick Drechsler
2006-12-14 14:32 ` Jan Djärv
2006-12-15 12:02 ` Patrick Drechsler
2006-12-15 17:19 ` James Cloos
2006-12-15 20:45 ` Jan Djärv [this message]
2006-12-20 19:50 ` Patrick Drechsler
2006-12-14 4:07 ` Patrick Drechsler
2006-12-14 7:08 ` Jan Djärv
2006-12-14 10:53 ` Patrick Drechsler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45830965.8060208@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=patrick@pdrechsler.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.