Re: FVWM: Hide command

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 6 Mar 2002 22:24:44 +0000

On 06 Mar 2002 15:33:18 +0100, Marcus Lundblad wrote:
>
> On Wed, 6 Mar 2002, Dominik Vogt wrote:
>
> > On Tue, Mar 05, 2002 at 11:51:08PM +0100, Marcus Lundblad wrote:
> > > I have a suggestion for a new command:
> > > Hide
> > > This would hide a window. Yes I know it's possible to specify that certain
> > > (or all) windows should not have an icon. But I got an idea to have an
> > > option (in the root menu for example) to hide my pager, but still it could
> > > be handy somtimes to be able to do a normal iconification.
> >
> > You can put windows on an unused desk to hide them:
> >
> > MoveToDesk 0 -123456
> >
> > and to show them again:
> >
> > MoveToDesk
> >
> > Is that good enough?
>
> Yes. That'll do.

Just remember that issuing this command crashes the gnome pager that is
swallowed in the gnome panel, it is crashed even on "MoveToDesk 0 50".
EWMH also says negative desktop numbers are not allowed, so there may be
more applications that stop working. Just tested - both GNOME panel and
kicker (KDE panel) crashed after "GotoDesk 0 -12".

> I was thinking in the lines of using Style NoIcon / Style Icon, to turn
> off/on icons
> Something like ("pseudo code").
> function Hide
> Style desired_window NoIcon
> Iconify desired_window true
>
> function Unhide
> Style desired_window Icon
> Iconify desired_window false
>
> but I didn't find a way to make this wok for arbitrary windows.
> So, I think your solution is more than adequate.

There are 2 issues here. The first is styles for individual windows that
are still under the developement.

The second is that there is no opposite boolean style option for NoIcon.
I plan to add later new Style option HasIcon that is what you need here.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Mar 06 2002 - 16:25:15 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST