"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: