Unity panel shadow is "faked" by drawing it on the desktop background

Bug #858378 reported by pablomme
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Unity
Won't Fix
Medium
Unassigned
unity (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Unity paints its own panel shadow independently of the regular window shadows. This is a redundant hack and should be avoided in future.

Until 13.04, this caused several rendering bugs with respect to other Compiz plugins. However most of those rendering bugs (described below) have now been fixed under separate bug IDs. But the shadow is still "faked" by Unity. Hence this bug.

ORIGINAL DESCRIPTION:
As seen in the attached screenshot, the panel shadow in Unity (both in 11.04 and 11.10) is drawn by simply overlaying it on the desktop background. This causes a bit of ugliness when switching desktops (see the thumbnails in the desktop switcher in the screenshot where one can see a dark line at the top of each desktop), or when toggling expo (there is no panel shadow), and is a bit of a "cheap trick" [with all due respect :)].

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity 4.16.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
Uname: Linux 3.0.0-11-generic x86_64
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,imgjpeg,copytex,compiztoolbox,decor,resize,resizeinfo,scale,move,imgpng,put,text,grid,shift,annotate,commands,regex,mousepoll,wall,gnomecompat,place,scaleaddon,animation,workarounds,session,expo,ezoom,unityshell]
Date: Sat Sep 24 18:40:17 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: Upgraded to oneiric on 2011-09-24 (0 days ago)

Revision history for this message
pablomme (pablomme) wrote :
Omer Akram (om26er)
Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug McMahon (mc3man) wrote :

You may wish to refer to this bug in regards to possible future? changes
Bug 747682

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Indeed, this was discussed in comment #21 onward in bug 747682.

Revision history for this message
Shane Synan (digitalcircuit) wrote :

(Originally posted on the wrong bug (#967294); apologies if I shouldn't have re-posted it here)

When showing a LibreOffice presentation on two screens in extended mode, the Unity panel shadow obscures the top of the presentation, which looks really ugly. I'm assuming this is caused by how Unity fakes the panel shadow. (note that setting the presentation window to Always on top in Slideshow settings does *not* fix the problem)

Are there any other workarounds beyond removing the panel shadow completely as per https://bugs.launchpad.net/ubuntu/+source/unity/+bug/967294/comments/4 ?

Changed in unity:
status: Confirmed → Fix Released
Changed in unity (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If this was "fixed" then please link a branch to show where.

Changed in unity:
status: Fix Released → Triaged
Changed in unity (Ubuntu):
status: Fix Released → Triaged
Changed in unity:
importance: Undecided → Medium
Changed in unity (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Oh I think I see why 3v1n0 changed the status. The graphical bugs described in Bug Description are mostly fixed now. However I think we need to ignore those. The fact remains that Unity should not be painting its own shadows. It should be leaving it up to the compiz decor plugin.

description: updated
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Sorry Daniel, I meant it was related to the old fake shadow we were using in old releases...

Revision history for this message
Will Cooke (willcooke) wrote :

As part of the big bug clear up for 16.04 we have reviewed this bug and we will not be working on it in the near future. Sorry we can't offer you a fix. We will of course review patches if anyone submits them. Please stop by IRC to discuss this option.

Changed in unity:
status: Triaged → Won't Fix
Changed in unity (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.