Bug 235620 - Blur shadow around widgets does not smoothly fade out
Summary: Blur shadow around widgets does not smoothly fade out
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: visuals (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 13:36 UTC by Matt Williams
Modified: 2013-05-17 15:30 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.5


Attachments
Plasma calendar open to show the blur/transparency bug. (59.92 KB, image/png)
2010-04-28 13:37 UTC, Matt Williams
Details
xwininfo output for the calendar widget (585 bytes, text/plain)
2013-05-16 21:25 UTC, Philip Sequeira
Details
xwininfo output for the clock tooltip (592 bytes, text/plain)
2013-05-16 21:26 UTC, Philip Sequeira
Details
calendar widget showing the bug (Aya theme) (66.24 KB, image/png)
2013-05-17 10:24 UTC, Philip Sequeira
Details
clock tooltip showing the correct blur and the bug (17.58 KB, image/png)
2013-05-17 11:18 UTC, Philip Sequeira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Williams 2010-04-28 13:36:47 UTC
Version:            (using Devel)
Compiler:          GCC 4.3.1 
OS:                Linux
Installed from:    Compiled sources

Running KDE trunk (r.1120071) and with the blur KWin effect enabled I'm getting a strange effect. It looks like the blur effect is being applied after the transparent shadow around the plasma widget causing a sharp cut-off of the blurring. Instead of the sharp cut-off, it should smoothly fade out.

Attached is a screenshot of the plasma calendar widget open with a browser containing text open in the background to show the effect. However, it happens with all plasma widgets including KRunner.
Comment 1 Matt Williams 2010-04-28 13:37:39 UTC
Created attachment 43076 [details]
Plasma calendar open to show the blur/transparency bug.
Comment 2 Martin Flöser 2010-04-30 20:44:56 UTC
Back to Plasma. The blurred region is set by Plasma, KWin does not blur the background if Plasma doesn't say so.
Comment 3 Ignat Semenov 2010-05-18 18:30:33 UTC
Now please, somebody, go and point those Plasma guys to this! ;) This is not getting noticed at all! What's that? /me wantz a win7 kde now!!!!!
Comment 4 Fredrik Höglund 2010-05-22 00:36:49 UTC
Please try clearing the image/pixmap cache and restarting Plasma.

You do that by deleting all the files that have names that begin with plasma in /var/tmp/kdecache-${USER}/
Comment 5 Matt Williams 2010-05-23 15:06:37 UTC
I've tried clearing the cache and restarting plasma-desktop and it make no difference.
Comment 6 Fredrik Höglund 2010-05-23 19:17:38 UTC
Could you open the calendar, type "xprop | grep BLUR" in a konsole window, then click the calendar and paste the xprop output in this bug report.

Thanks
Comment 7 Ignat Semenov 2010-05-23 23:07:57 UTC
Here it is:
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 10, 238, 9, 240, 64, 161, 1, 52
Comment 8 Matt Williams 2010-05-24 11:25:57 UTC
And I get:

_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 10, 238, 9, 240, 186, 113, 1, 34

I don't know if the difference is important so I thought that I should give you my result too.
Comment 9 Fredrik Höglund 2010-05-25 19:21:23 UTC
Thanks guys, we believe we understand what the problem is now.
Bug fix coming up shortly.
Comment 10 Fredrik Höglund 2010-05-25 19:24:29 UTC
SVN commit 1130565 by fredrik:

Fix a 64-bit issue in WindowEffects::enableBlurBehind().
CCBUG: 235620


 M  +2 -3      windoweffects.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130565
Comment 11 Fredrik Höglund 2010-05-25 19:28:22 UTC
SVN commit 1130567 by fredrik:

Fix a 64-bit issue in BlurEffect::updateBlurRegion().

BUG: 235620
FIXED-IN: 4.5 beta2


 M  +3 -3      blur.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130567
Comment 12 Matt Williams 2010-06-02 11:58:35 UTC
Yup, looks fixed to me. Thanks a lot guys :)
Comment 13 Michael Zanetti 2011-03-14 23:13:34 UTC
I still see this issue in KDE 4.6.1. While it is gone for plasma tooltips with the Air theme since 4.5, I still get it for Kickoff and KRunner.

Basically every other plasma theme out there (including oxygen) still suffers from this. Funny enough, the panel itself is working correctly with every theme, but not the tooltips, KRunner etc...
Comment 14 Philip Sequeira 2013-05-16 06:55:49 UTC
I'm still having this problem on KDE 4.10.3 (Arch Linux packages) with the Aya theme. It happens with pretty much anything from plasma; I'm not attaching a screenshot because it's pretty much the same as the one already here, but I can upload one if required.

xprop on my calendar widget says:
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 6, 0, 410, 1, 4, 1, 412, 1, 2, 2, 414, 2, 1, 4, 415, 2, 0, 6, 416, 210

And here's one from the tooltip of the clock (which has the same problem):
_KDE_NET_WM_BLUR_BEHIND_REGION(CARDINAL) = 6, 0, 253, 1, 4, 1, 257, 1, 2, 2, 261, 2, 1, 4, 263, 2, 0, 6, 265, 172, 1, 178, 263, 2, 2, 180, 261, 2, 4, 182, 257, 1, 6, 183, 253, 1

I'd be happy to provide any other info that would help.
Comment 15 Thomas Lübking 2013-05-16 08:55:56 UTC
Does it happen with other themes (except "air")
Only if yes Please also provide the output of "xwininfo" on those windows.
Comment 16 Philip Sequeira 2013-05-16 21:25:16 UTC
(In reply to comment #15)
> Does it happen with other themes (except "air")
Yes, it happens with every theme here except for Air and Produkt (the latter just because it doesn't use drop shadows, AFAICT, so not applicable). It also happens with a third-party theme called Fushigi on another machine.

> Only if yes Please also provide the output of "xwininfo" on those windows.
Will do.
Comment 17 Philip Sequeira 2013-05-16 21:25:57 UTC
Created attachment 79919 [details]
xwininfo output for the calendar widget
Comment 18 Philip Sequeira 2013-05-16 21:26:23 UTC
Created attachment 79920 [details]
xwininfo output for the clock tooltip
Comment 19 Thomas Lübking 2013-05-17 09:03:05 UTC
The calendar widget has a blur hint covering the entire window (minus rounded upper corners) - so there would be blurring below internal windows.

a) please attach a screenshot (ideally png, don't scale it!) of the calendar and
b) random guess: does it also/still happen if you call "kquitapp plasma-desktop; sleep 3; plasma-desktop"?
Comment 20 Philip Sequeira 2013-05-17 10:24:18 UTC
Created attachment 79929 [details]
calendar widget showing the bug (Aya theme)

a) Here it is.
b) The bug is still there when plasma comes back up.
Comment 21 Thomas Lübking 2013-05-17 11:04:19 UTC
from kwin all seems fine. the window is blurred as it requests.

but:
- apparently the request fits some window mask
- i don't see why it should blur at all (does not look translucent to me)
Comment 22 Philip Sequeira 2013-05-17 11:18:05 UTC
Created attachment 79930 [details]
clock tooltip showing the correct blur and the bug

It was hard to see in the last screenshot, but the widgets are definitely translucent. It's a lot more obvious in this shot.
Comment 23 Thomas Lübking 2013-05-17 15:30:40 UTC
One can even see the rounding on that shot.
The shadow padding is somehow not accounted by either the theme or -more likely- the theme engine after the shadow handling of the air theme changed.