lucky
20 January 2005 10:57
1
Hello everyone,
I’ve a problem with title-bar decorations, this is my ~/.fvwm/config :
Path des fichiers de configuration
SetEnv fvwm_config_path $[FVWM_USERDIR]/configs
Variables pour mettre en place le wallpaper
SetEnv fvwm_root “Esetroot -s”
SetEnv fvwm_wallpaper_path $[HOME]/Images/Wallpapers
SetEnv fvwm_wallpaper $[fvwm_wallpaper_path]/lovetux.jpg
Path des splashscreens
SetEnv fvwm_splash_path $[FVWM_USERDIR]/splash
Path des décorations de fenêtres
SetEnv fvwm_deco_path $[FVWM_USERDIR]/decorations
Read $[fvwm_config_path]/start
Read $[fvwm_config_path]/splash
Read $[fvwm_config_path]/decorations
Here my decoration file :
DestroyFunc FuncFvwmDecorBackground
AddtoFunc FuncFvwmDecorBackground
I TitleStyle AllActive TiledPixmap $[fvwm_deco_path]/title-bar.png
I TitleStyle AllInactive TiledPixmap $[fvwm_deco_path]/title-bar-inactive.png
I ButtonStyle All Simple – UseTitleStyle
FuncFvwmDecorBackground
I FuncFvwmDecorBackground
AddButtonStyle 1
ActiveUp (Pixmap $[fvwm_deco_path]/menu-button.png – flat)
ActiveDown (Pixmap $[fvwm_deco_path]/menu-button-push.png – flat)
Inactive (Pixmap $[fvwm_deco_path]/menu-button-inactive.png – flat)
AddButtonStyle 6
ActiveUp (Pixmap $[fvwm_deco_path]/button-min.png – flat)
ActiveDown (Pixmap $[fvwm_deco_path]/button-min-push.png – flat)
Inactive (Pixmap $[fvwm_deco_path]/button-inactive.png – flat)
AddButtonStyle 4
ActiveUp (Pixmap $[fvwm_deco_path]/button-max.png – flat)
ActiveDown (Pixmap $[fvwm_deco_path]/button-max-push.png – flat)
Inactive (Pixmap $[fvwm_deco_path]/button-inactive.png – flat)
AddButtonStyle 2
ActiveUp (Pixmap $[fvwm_deco_path]/button-close.png – flat)
ActiveDown (Pixmap $[fvwm_deco_path]/button-close-push.png – flat)
Inactive (Pixmap $[fvwm_deco_path]/button-inactive.png – flat)
Style “" Button 1, Button 2, Button 4, Button 6, GrabFocusOff
Style " ” FvwmButtons
AddToFunc FuncFvwmReloadDecor
I BorderStyle Simple – HiddenHandles NoInset
I TitleStyle – Flat
I ButtonStyle All – Flat
FuncFvwmReloadDecor
TitleStyle Height 16
I have got of course this pixmaps ! Now i have not decorations ! Just the default decor decoration.
Here my start file :
Can anyone help me please ? Thanks anyway.
Why are you using functions to define your decors?
My window decorations sections (on this pc) looks like this:
[code]DestroyDecor DefaultDecor
AddToDecor DefaultDecor
TitleStyle Centered Height 16
TitleStyle Active TiledPixmap cityofdreams/top.png – flat
TitleStyle Inactive TiledPixmap cityofdreams/top.png – flat
ButtonStyle 1
Active (Pixmap cityofdreams/menu.png – flat)
Inactive (Pixmap cityofdreams/menu_shaded.png – flat)
ButtonStyle 6
ActiveUp (Pixmap cityofdreams/minimize.png – flat)
ActiveDown (Pixmap cityofdreams/minimize_pressed.png – flat)
Inactive (Pixmap cityofdreams/minimize_inactive.png – flat)
ButtonStyle 4
ActiveUp (Pixmap cityofdreams/maximize.png – flat)
ActiveDown (Pixmap cityofdreams/maximize_pressed.png – flat)
Inactive (Pixmap cityofdreams/maximize_inactive.png – flat)
ButtonStyle 2
ActiveUp (Pixmap cityofdreams/close.png – flat)
ActiveDown (Pixmap cityofdreams/close_pressed.png – flat)
Inactive (Pixmap cityofdreams/close_inactive.png – flat)
Style * UseDecor DefaultDecor[/code]
The last line sets the decor as the default for all windows, the other lines are pretty obvious I think
hth
lucky
20 January 2005 14:09
3
Thanks for you reply. I’ve resolved the problem by put the mouse gesture
lucky
21 January 2005 21:53
4
I try to use your method for decorate my windows :
[code]
DestroyDecor DefaultDecor
AddToDecor DefaultDecor
TitleStyle LeftJustified Height 20
TitleStyle Active TiledPixmap decoration/title-bar.png – flat
TitleStyle Inactive TiledPixmap decoration/title-bar-inactive.png – flat
ButtonStyle 1
ActiveUp (Pixmap decoration/menu-button.png – flat)
ActiveDown (Pixmap decoration/menu-button-push.png – flat)
Inactive (Pixmap decoration/menu-button-inactive.png – flat)
ButtonStyle 6
ActiveUp (Pixmap decoration/button-min.png – flat)
ActiveDown (Pixmap decoration/button-min-push.png – flat)
Inactive (Pixmap decoration/button-inactive.png – flat)
ButtonStyle 4
ActiveUp (Pixmap decoration/button-max.png – flat)
ActiveDown (Pixmap decoration/button-max-push.png – flat)
Inactive (Pixmap decoration/button-inactive.png – flat)
ButtonStyle 2
ActiveUp (Pixmap decoration/button-close.png – flat)
ActiveDown (Pixmap decoration/button-close-push.png – flat)
Inactive (Pixmap decoration/button-inactive.png – flat)
Style * UseDecor DefaultDecor[/code]
With this lines, i have got my buttons, and only the title bar in center, not behind buttons ?
How can i do to have the title-bar pixmap everywhere ? (in center, behind buttons etc…)
With my first post, it worked well.
Please help
I’m not sure I understand what you’re asking. Can you rephrase your question?
– Thomas Adam
lucky
3 April 2005 16:08
6
Hello !
I have a problem with a button in my title bar. When i maximize the window, the button is not here. I think a screenshot is good for understanding :
here window maximize
img195.exs.cx/img195/6127/fvwm9ne.jpg
and here normal window
img195.exs.cx/img195/931/fvwm21fy.jpg
Do you want to see my decoration config file ?
lucky
3 April 2005 19:14
7
Hum i don’t know why, but now it works…
Just for completeness:
This happens when you use MwmButtons. From the fvwm man page:
You probably hadn’t defined a pixmap for the maximized button.
I know, late answer, but in case anyone else gets the problem like me.