Re: FVWM: Window placement questions

From: Uwe Pross <uwe.pross_at_gmx.net>
Date: Tue, 4 Jun 2002 14:30:20 +0200

On Mon, Jun 03, 2002 at 03:42:32PM +0000, Mikhael Goikhman wrote:
>
> There is PlacementOverlapPenalties Style option that enables to configure
> how your window is placed (not how other windows are placed relatively to
> that window). But if that SplashWindow is the only Sticky window, try:
>
> Style * MinOverlapPlacement, PlacementOverlapPenalties 1 5 1 0 0 50
>
> Or if it is the only OnTop window, try:
>
> Style * MinOverlapPlacement, PlacementOverlapPenalties 1 0 1 1 0 50

Style * MinOverlapPlacement
Style * PlacementOverlapPenalties 1 0 10 1 0 50

Does exactly what I want :-) Normally the splash window is the only
window which has the StaysOnTop option. But I like it in general if
windows on top are ignored by the placement algorithm.

> Probably it makes sence to extend PlacementOverlapPenalties to get several
> more arguments, for example 2 factors for State-0 and State-1 windows.
> Each window has 32 boolean window properties (states) that a user may set.
> I.e.: Next (SplashWindow) State 0 true
> or even (not yet): Style SplashWindow State 0 true

Not for me at the moment. But maybe other users would like to use it.

> Search for "strut" in the man page. Try:
>
> EWMHBaseStrut 0 62 0 63
>
> You may do some additional work to have everything work as you want,
> like placement, Maximize and so on. Report your results if you succeed.

Works fine :-) All other things worked already as I want.
I use environment variables to set the size of the buttonbar and
taskbar. So my actual configuration comes to:

....
SetEnv TaskBarHeight 26
SetEnv ButtonBarHeight 0
SetEnv ButtonBarWidth 66

EWMHBaseStrut 0 $[ButtonBarWidth] 0 $[TaskBarHeight]

Style * EWMHMaximizeIgnoreWorkingArea
Style * EWMHPlacementUseWorkingArea
....

I use two different maximize/resize functions to maximize to the
"Working area" and to the whole screen:

....
DestroyFunc MyMaximize
AddToFunc MyMaximize I Current Maximize 100 100
+ I Raise

DestroyFunc ResizeToShowButtons
AddToFunc ResizeToShowButtons I Current Resize $[WindowWidth]p $[SpaceBetweenBars]p
+ I Current AnimatedMove 0 $[ButtonBarHeight]p
+ I Raise

Mouse 1 6 A Function ResizeToShowButtons
Mouse 1 4 A Function MyMaximize
....

So thank you very much for the hints.

Uwe
-- 
+----------------------------------------------
| Uwe Pross
| mail : mailto:uwe.pross_at_gmx.net
| www  : http://www.tu-chemnitz.de/~uwp
+----------------------------------------------
Have a nice day ;-).
-----------------------------------------------
--
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 Tue Jun 04 2002 - 07:30:48 BST

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