--- Uwe Pross <keinFruehstuecksfleisch_at_gmx.net> wrote:
> Hi there,
Hello, Uwe
> Since I got an application which opens small windows a
> couple of times I switched to CascadePlacement since
> TileCascadePlacement caused fvwm to place the windows at
> different positions on the screen which is quite annoying.
>
> However, I like the CascadePlacement style, except that if
> there is no uniconified window on the current page it
> sometimes places the window as if there would be other
> windows.
> I would like if the new window is the only one on
> the page fvwm would place it at the top left corner.
Assuming that this window is the initial window when the program loads,
you can use FvwmEvent to achieve this:
----------------------------------------------
*FvwmEvent-MyWin: StartDelay 4
*FvwmEvent-MyWin: add_window FuncWarptoLocale
AddToFunc FuncWarptoLocale
+ I Next ("The_Window") Move 0 0
AddToFunc StartFunction I Module FvwmEvent-MyWin
---------------------------------------------------
(where "The_Window" is the window you want to move -- I have not tested
the above, mind.)
> The
> next window should be placed in cascading style.
If the window is a transient window then you can do the same thing above,
i.e.
------------------------------
AddToFunc FuncWarptoLocale
+ I Next ("The_Window") Move 0 0
+ I Style $0 CascadePlacement
-----------------------------------
> Icons
> should be fully ignored. So new windows should be always
> placed at the top left corner if there is not other window
> on the page e.g. in the working area.
> Can this be achieved?
Perhaps, if you try and edit my example.
> BTW: I got a couple of applications swallowed by
> FvwmButtons. Maybe the confuse the placement.
HTH,
-- Thomas Adam
=====
Thomas Adam
"The Linux Weekend Mechanic" -- www.linuxgazette.com
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger
http://mail.messenger.yahoo.co.uk
--
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 Sep 10 2003 - 11:35:46 BST