Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-10-18 20:11:52

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

[Solved] configuring compositor shadows

Hi,

how do I define how the window shadows are drawn? the offsets and so on? by default the shadow seems to fall towards the top left corner that's just wrong. smile I remember that I did change those settings somewhere but I just can't remember how I did it..


- bracket


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#2 2006-10-18 21:37:52

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] configuring compositor shadows

In the xfwm4 code: src/compositor.c

Offline

#3 2006-10-19 08:59:01

thehundredthone
Member
Registered: 2004-02-23
Posts: 32

Re: [Solved] configuring compositor shadows

isn't the option there in wm settings?


Before you criticize someone, walk a mile in their shoes
That way, if they get angry, they're a mile away and barefoot

Offline

#4 2006-10-19 14:45:50

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

Nick wrote:

In the xfwm4 code: src/compositor.c

Is that really the only place? I'm using the 4.4 beta and I REALLY hope there would be some sort of gui or even setting file where you could edit these. It's possible that I was using xcompmgr earlier, but don't remember..


- bracket


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#5 2006-10-19 14:46:46

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

thehundredthone wrote:

isn't the option there in wm settings?

please tell me if you can find it. smile becouse I didn't.


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#6 2006-10-19 15:58:10

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] configuring compositor shadows

In the settings dialog you can only change the opacity (transparent - opaque) settings
and enable/disable the dialog/window shadow.

There is no way to change the shadow position/offset. There will probably never a setting
to change this, since it doesn't fit in the Xfce philosophy.

So you have to change the #define's in the compositor.c file  cool.

Offline

#7 2006-10-19 17:14:37

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] configuring compositor shadows

Mm this also seems to affect the shadow: <install_dir>/share/themes/<your_theme>/xfwm4/themerc

Offline

#8 2006-10-20 18:32:40

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

Juuust perfect.. now I can't get the compositor activated. No matter what I do. the compositor tab just wont come to the Window Manager Tweaks. I know that xfwm4 should be started with --compositor=on option but that just doesn't do it. And yes, there is composite "true" on my x.org.conf


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#9 2006-10-20 18:41:45

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] configuring compositor shadows

Are you sure xfwm4 is compiled with compositor support?

[code=Command]xfwm4 -V[/code]

Offline

#10 2006-10-20 18:53:52

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

Yes, twice already. smile

$ xfwm4 -V
        This is xfwm4 version 4.3.90.2 (revision 22378) for Xfce 4.3.90.2
        Released under the terms of the GNU General Public License.
        Compiled against GTK+-2.8.19, using GTK+-2.8.19.

        Build configuration and supported features:
        - Startup notification support:                 No
        - Render support:                               Yes
        - Xrandr support:                               Yes
        - Embedded compositor:                          Yes
        - KDE systray proxy (deprecated):               No


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#11 2006-10-21 09:28:38

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

Ok, somehow a reboot did what restarting the X didn't so now the compositor works again.


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#12 2006-10-22 08:07:53

bracket
Member
From: Finland, Vantaa
Registered: 2004-08-04
Posts: 8
Website

Re: [Solved] configuring compositor shadows

Yes! I did it! there are certain setting in the ~/.config/xfce4/xfwm4/xfwm4rc

shadow_delta_height=5
shadow_delta_width=5
shadow_delta_x=0
shadow_delta_y=0

Came settings can be used in the themerc file of each xfwm4 theme in(well, in gentoo) /usr/share/themes/ but I guess the correct way is to edit that xfwm4rc file instead. Why those settings are not in the Compositor tab in the Window Manager Tweaks?


[ :: bracket :: ]
[ :: http://nutz.wox.org/bracket/ :: ]

Offline

#13 2006-10-22 13:13:28

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] configuring compositor shadows

Because shadow offset wouldn't be a userfriendly setting.
Xfce must be easy to configure and since most people won't change this value, a hidden setting is good enough.

Offline

Board footer

Powered by FluxBB