Comment 9 for bug 979252

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Bug 979252] Re: Shadow Clipping / Regressions with AWN in compiz 0.9.7.7 (built an hour ago)

Hi,

On Sun, Jun 7, 2015 at 4:07 AM, p <email address hidden> wrote:

> Ok, so after years still no fix.
>
> Since I provide a compiz-0.9.12.x build for OpenSUSE through the build
> service I finally took a look:
>
> plugins/decor/src/decor.cpp
>
> line 3038 -> mMenusClipGroup (CompMatch ("type=Dock | type=DropdownMenu
> | type=PopupMenu"))
>
> I don't know why "DropdownMenu" and "PopupMenu" should be clipped... I
> removed those entry and now everything is peachy.
>
> I wonder why it is hardcoded, could be defaults for some plugin param...
>

Thats to provide shadow clipping against adjacent menus, so that you don't
get spillover shadows on to those menus. The proper fix will probably be to
make the clipping code look at the input shape region as well, although I
thought it already did that.

>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/979252
>
> Title:
> Shadow Clipping / Regressions with AWN in compiz 0.9.7.7 (built an
> hour ago)
>
> Status in Compiz:
> Triaged
> Status in Compiz Core:
> Triaged
> Status in Arch Linux:
> New
>
> Bug description:
> I've noticed over the last few days, there has been changes to how
> shadows are drawn for menus. My understanding is this has a lot to do
> with menus looking detatched/above unity-launcher, gtk-apps, etc...
> For a couple days menu shadows were pretty screwed up (some shadows,
> some not).
>
> Well, now there seems to be some new issues;
>
> 1. Menu shadows get clipped when to close to AWN (im sure this is true
> of cairo-dock too);
>
> http://ompldr.org/vZGNjcQ/compiz-shadows-corrupt.png
>
> I've made the background white, and highlighted the clipped shadow
> area (which seems to be an area that AWN uses). In the screenshot, you
> should notice that i am running 'winreflect' plugin (which is
> unsupported), however, it makes no difference where it has been
> disabled or removed - winreflect isn't the problem. changes in how
> shadows are handled is...
>
> 2. sub-menus - whenever, you select a sub-menu, than move your cursor
> away, shadows get clipped and it looks horrible. it basically flickers
> and leaves no shadow, where the sub-menu once appeared;
>
> http://ompldr.org/vZGNjdQ/compiz-shadows-menu-corrupt.png
>
> the AWN issue isn't super noticable, but the sub-menu issue is an eye-
> sore.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/compiz/+bug/979252/+subscriptions
>

--
Sam Spilsbury