FVWM: Movable FvwmButtons-based toolbar

2009-12-08 Thread rff
Hello everybody.

I'm using fvwm 2.5 and trying to make a FvwmButtons-based toolbar.
I'd like to make it movable too but I haven't figured out how.

I could move it using its own border or title bar, but the thing
is I'll be removing those because 1) they're ugly on such a small
toolbar and 2) they waste screen space.

I could also add a 'Move' button somewhere, click it then click the
toolbar window to move it, but this is a waste of time (2 clicks and
a drag-drop).

What I'm trying to do is add a small button on the toolbar itself
that will act as a handle, so I can click it and drag the toolbar
immediately.
I haven't seen a method for doing that so I was wondering if it's
even possible.

Thank you in advance for your help and thank you for making such a
wonderful WM!


  



Re: FVWM: Movable FvwmButtons-based toolbar

2009-12-08 Thread rff
> > Nope.  You'll be using "2.5.X", there is no version "2.5".
Of course. I'm actually using 2.5.27 (on FreeBSD).

> > DestroyModuleConfig a:*
> > *a: (1x1, Title "move", ActionOnPress, Action (Mouse 1)
> > PointerWindow SomeFunc)
> >
> > DestroyFunc SomeFunc
> > AddToFuncSomeFunc
> > + I Move
> >
> > FvwmButtons a
"PointerWindow" is what I was missing. It's a simple and elegant
solution, just like fvwm. There truly is nothing you can't do
with it.

Thank you very much for the fast reply and again for this
magnificent WM. :)


  



Re: FVWM: Movable FvwmButtons-based toolbar

2009-12-08 Thread rff
> PointerWindow is more for the fact that the window context
> isn't
> guaranteed (c.f. things like NeverFocus style on
> FvwmButtons) -- the
> real key to your requirement is to use a function for the
> moving of
> the window -- if you want to use a function here so that
> the pointer
> is grabbed immediately.
>
> -- Thomas Adam

I got that, thank you.
At first I suspected it would require the use of a function,
but I didn't know how to *conditionally* use that function.
I was recently reading about "conditional commands", and
everything was not very clear then. So it didn't really work as
planned and I thought it wasn't the right way to do it after all.
But I was wrong. And it's all much clearer now.


  



FVWM: List of windows in a menu

2011-04-22 Thread rff
Hello,

I'd like to have a root menu item that opens a submenu
listing every window. In other words, each item in the
submenu would represent one window and I'd be able to
click it to switch to the selected window. Is this
possible?
When I run WindowList from the root menu, it creates
and "detaches" a submenu containing the list. I don't
want that.

By the way, congrats on the 2.6.0 release! :)

Thanks.




Re: FVWM: List of windows in a menu

2011-04-22 Thread rff
> Using FvwmWindowMenu, I believe so.

I'm trying to keep the number of modules/external binaries as low
as possible (old machine), but FvwmWindowMenu runs a Perl binary.
So I'll reconsider my way of doing things.

Thanks anyway.




Re: FVWM: List of windows in a menu

2011-04-22 Thread rff
> Umm, given it's *shipped* with FVWM, uses things *shipped*
> with FVWM, but > requires perl, which is not unreasonable at all,
You're absolutely right. I was just looking for a more "compact"
solution. My configs are minimalist to the maximum.

> I fail to see what else there is for you to do to "reconsider"
My objectives and the way to achieve them.
I'm making a few changes to my config file and I'll just do it
differently than what I first had in mind. Really, it's no big deal.