[Clfswm-devel] Hidden features

Philippe Brochard pbrochard at common-lisp.net
Fri Apr 4 23:56:45 UTC 2014


Renaud Casenave-Péré a écrit :

> Hi,
>
> On Sun, Mar 30 2014, Philippe Brochard wrote:
>
>> As the documentation says, this function "remove the current child from
>> its parent frame". It is supposed to be used when you have copied the
>> current child in more than one frame. This is useful when you want
>> multiple view of a child (for example, with a layout per frame and the
>> same children reorganized in each).
>> But there is no guard: if you remove the last view of the child, you'll
>> have no way to retrieve it.
>> Maybe we must add this guard to prevent to remove the last instance of a
>> child. Tell me if you think so.
>
> I see… Thanks for the explanation.
>
> You could indeed foolproof this feature by preventing deletion of the
> last child or you could put it in the list of hidden children (or another list)
> to let the user retrieve it if removed by error, but this would be quite similar
> to the "hide current child" feature…
>
I have added a menu binding to retrieve deleted windows 
second-mode -> child menu (c) -> retrieve existing windows (R). 

This way we can remove any frame or windows and we have the ability to
retrieve windows. But frames have to be recreated.

Hope this is sufficient. If not, we need a little bit more code to
prevent the deletion of any last child present in the removed frame.
But this is relatively easy.

Regards,

Philippe





More information about the clfswm-devel mailing list