On Fri, Jun 03, 2005 at 02:37:05PM +0300, Andrei Popov wrote:
> I'm using gtk2 apps almost exclusively, and they somehow store their
> position after you run them for second time. E.g. if you run gedit for
> the first time, maximize its window and then close it, next time you
> run gedit it will start exactly where you left it.
That's all thanks to PPosition.
> THE QUESTION: How do I achieve such a placement automatically, each
> time I start this Java app?
>
> I guess I need to use FvwmEvent to trigger a neat function that will
> do the trick.
I've mentioned how to do this several times over at the fvwm-forms.
It's also an entry in the FAQ. Essentiall you want something like this:
DestroyModuleConfig FvwmEvent-Java: *
*FvwmEvent-Java: Cmd Function
*FvwmEvent-Java: add_window SomeFunc
DestroyFunc SomeFunc
AddToFunc SomeFunc
+ I ThisWindow ("some_name") Move 200 +90
AddToFunc StartFunction Module FvwmEvent FvwmEvent-Java
You'll want to play about with the 'SomeFunc' definition, but that
should get you started.
-- Thomas Adam
--
"One of us is a cigar stand, and one of us is a lovely blue incandescent
guillotine" -- Stephen Malkmus, "Type Slowly" from "Brighten The Corners"
--
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 Fri Jun 03 2005 - 09:20:43 BST