Shade tiled frame

Carlos <[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
Hi all,

I'd like to write a function to shade a tiled frame taking into account
that the frame tabbar could have been hidden (mode = 'tiled-alt'). I
found out that set_shaded('set') won't work for tiled-alt frames, which
seems sensible to me. So before setting the shaded state I save the
frame mode, which I restore later when unshading the frame. The problem
is that some unshades are triggered automatically by the manager (?)
when the alternative frame is shaded and there is nothing left to be
shown. For example, let A and B be the two frames for my current
workspace: 1) I shade A so B is maximized. 2) Now I shade B and A is
forced to maximize, leaving the shaded state. I can't figure out a
simple way to intercept this automatic shaded->unshaded transition so
that I can restore the original frame mode as explained before. Could
you give me a clue? I'm new to ion and still getting my way through the
api.

Thank you in advance

Regards
-Carlos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.