emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fullscreen and gnome


From: Jan Djärv
Subject: Re: fullscreen and gnome
Date: Fri, 15 Dec 2006 21:45:25 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061115)

James Cloos skrev:
>>>>>> "Patrick" == Patrick Drechsler <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]