* Mikhael Goikhman <migo_at_homemail.com> 5. Nov 04:
> DestroyFunc ToggleShade
> AddToFunc ToggleShade
> + I ThisWindow (Shaded) WindowStyle NoTitle
> + I ThisWindow (Shaded) UpdateStyles
> + I ThisWindow (Shaded) WindowShade false
> + I TestRc (1) Break
> + I WindowShade $0
> + I WindowStyle Title
Thank you, I missed the UpdateStyles.
> I am not sure I understand all you mean,
The described problem seems to be more complex I thought (and has
nothing to do with the original subject). By default a windows origin
(shaded or unshaded) used when moving, positioning etc. is the most
topleft corner of the window. From my (very special) point of view it
would be more logical to position the topleft corner of the windows
content. Now I have a switch somewhere in my config changing this
default to something I don't understand. I will search for this, maybe
ask and describe the problem again.
> but in order to get titles at the left/right too, try this config:
Well, I am going to shade to any direction, the title is just a mean to
enlarge windows (viagra vor X) to catch shaded ones and unshade them, in
fact I don't need it. Important is, that I am able to shade windows in
all direction: North, South, East, West.
> Key h TFISW CS Current ToggleShade Left
> Key j TFISW CS Current ToggleShade Bottom
> Key k TFISW CS Current ToggleShade Top
> Key l TFISW CS Current ToggleShade Right
>
> DestroyFunc ToggleShade
> AddToFunc ToggleShade
> + I ThisWindow (Shaded) WindowStyle !Title
> + I ThisWindow (Shaded) UpdateStyles
> + I ThisWindow (Shaded) WindowShade false
> + I TestRc (1) Break
> + I WindowStyle TitleAt$0
> + I UpdateStyles
> + I WindowShade
> + I WindowStyle Title
Uh, I can concatenate commands from parameters? Nice! But WindowShade
without direction will only shade to a default direction (North,
AFAICS), won't it? I could do something like
Key h TFISW CS Current ToggleShade Left East
# etc.
DestroyFunc ToggleShade
AddToFunc ToggleShade
+ I ThisWindow (Shaded) WindowStyle !Title
+ I ThisWindow (Shaded) UpdateStyles
+ I ThisWindow (Shaded) WindowShade false
+ I TestRc (1) Break
+ I WindowStyle TitleAt$0
+ I UpdateStyles
+ I WindowShade $1
+ I WindowStyle Title
which seems a bit inelegant to me, but should work.
BTW: what's the difference of Current and ThisWindow?
Thanks again,
regards, Frank.
--
Sigmentation fault
--
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 Sat Nov 06 2004 - 07:33:21 GMT