This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Disable shadow for just one window

Tags: None
(comma "," separated)
balta
Registered Member
Posts
19
Karma
0
OS

Disable shadow for just one window

Fri Mar 19, 2010 6:09 pm
Hi,

is it possible to disable the shadows for specific windows?

Vdr-sxfe, a frontend for vdr-xineliboutput uses a transparent window as overlay to draw OSD. But because of the kwin-shadow this transparent window is shading over the video.

Greets
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately it doesn't look like this is possible. KWin doesn't draw the effects for the KMix OSD notification, so vdr-sxfe probably isn't setting the correct flags...

Note: this is with KDE Trunk, you may wish to upgrade to 4.4.1 to see if it is fixed there.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
balta
Registered Member
Posts
19
Karma
0
OS
I'm using KDE 4.4.1 here. For me the kmix-osd has shadows also, but this is no problem because this window is the same size as its content.

The problem with vdr-sxfe is that it is using a transparent window the same size as the main-window, so I have a big shadow over the whole video here.

Isn't it possible to add an shadow-option to the window-specific options?

If you du not know vdr-sxfe/vdr-xineliboutput, you can look here: http://vdr-wiki.de/wiki/index.php/Xineliboutput-plugin (german)
mgraesslin
KDE Developer
Posts
572
Karma
7
OS
balta wrote:I'm using KDE 4.4.1 here. For me the kmix-osd has shadows also, but this is no problem because this window is the same size as its content.
No the shadow is faked by the osd itself
balta wrote:Isn't it possible to add an shadow-option to the window-specific options?

No, this requires quite some work, please have a look at Bug #231535. Most likely the issue could be fixed by vdr-sxfe itself: if it uses a translucent overly it could set a window mask which will remove the shadow.
balta
Registered Member
Posts
19
Karma
0
OS
Hi and thanks for the hint. So I will try to fix it in vdr-sxfe and send a patch to its author. Which windowtype should I set for the OSD-window? At the moment xprop is giving me just:

Code: Select all
WM_NAME(STRING) = "HUD"


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]