On Wed, 27 Jun 2012 14:54:56 +0200
Andreas Rönnquist <
gus...@gusnan.se> wrote:
> On Wed, 27 Jun 2012 05:03:10 -0700 (PDT)
>
christo...@gmail.com wrote:
>
> > Hi,
> >
> > I'll Like to set up a rule saying "please undecorate maximized
> > windows" i.e. a window having the following X properties:
> > _NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT,
> > _NET_WM_STATE_MAXIMIZED_HORZ
> >
> > Is there a way to do it?
---------- 8< ----------
>
> You can expect a fix in the git version very soon that will allow
> something like this:
>
> if (is_window_maximized()) then
> undecorate_window();
> end
>
Alright, I have committed a fix adding get_window_is_maximized,
get_window_is_maximized_horisontally and
get_window_is_maximized_vertically functions -
Are you running the git version? In that case, could you please try
them out? - a function like
if (get_window_is_maximized()) then
undecorate_window();
end
should work fine. (You might have to maximize the window after
undecorating... I am not 100 % sure.)
/Andreas Rönnquist
gus...@gusnan.se