diff options
| author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2012-10-17 10:32:44 +0000 |
|---|---|---|
| committer | Tarmac <> | 2012-10-17 10:32:44 +0000 |
| commit | 8a8fc72544e197888833df000db0f5255a9731dd (patch) | |
| tree | 7249f3f2dd3f9f813c7fbe8892571ec9e9cb4ad7 /plugins/unityshell/src | |
| parent | 045af9b88690b31b943e9ce5d4aded258b159d3f (diff) | |
| parent | 9991b4d85b83d0b469c3c38701efa552ea4137c2 (diff) | |
Ensure the panel shadow doesn't get drawn if the panel itself is not being
drawn. (LP: #1065393) . . Fixes: https://bugs.launchpad.net/bugs/1065393. Approved by Sam Spilsbury. (bzr r2846)
Diffstat (limited to 'plugins/unityshell/src')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index bacbb08c3..3bccc2011 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -571,6 +571,10 @@ void UnityScreen::paintPanelShadow(const CompRegion& clip) return; CompOutput* output = _last_output; + + if (fullscreenRegion.contains(*output)) + return; + float panel_h = static_cast<float>(panel_style_.panel_height); // You have no shadow texture. But how? |
