Merge lp:~townsend/unity/fix-active-blur-regression into lp:unity

Proposed by Christopher Townsend
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 3527
Proposed branch: lp:~townsend/unity/fix-active-blur-regression
Merge into: lp:unity
Diff against target: 17 lines (+6/-1)
1 file modified
plugins/unityshell/src/unityshell.cpp (+6/-1)
To merge this branch: bzr merge lp:~townsend/unity/fix-active-blur-regression
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+186856@code.launchpad.net

Commit message

A regression caused by revno. 3515 breaks the recently fixed Quicklist and Tooltip active blur. This fixes it by checking if the View is a ViewWindow and if so, use QueueDraw() instead of NeedSoftRedraw().

Description of the change

= Issue =
A recent commit (revno. 3515) caused a regression in the recently fixed active blur for Quicklists and Tooltips.

= Fix =
The change to use NeedSoftRedraw() did not cause a new draw of the Quicklists or Tooltips, so no updated blur was occurring. Now check if the View is a ViewWindow and if so, use QueueDraw() instead. Otherwise, still use NeedSoftRedraw().

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/unityshell/src/unityshell.cpp'
--- plugins/unityshell/src/unityshell.cpp 2013-09-18 14:38:47 +0000
+++ plugins/unityshell/src/unityshell.cpp 2013-09-20 18:35:53 +0000
@@ -1367,7 +1367,12 @@
1367 CompRegion region(geo.x, geo.y, geo.width, geo.height);1367 CompRegion region(geo.x, geo.y, geo.width, geo.height);
13681368
1369 if (damage.intersects(region))1369 if (damage.intersects(region))
1370 view->NeedSoftRedraw();1370 {
1371 if (view->IsViewWindow())
1372 view->QueueDraw();
1373 else
1374 view->NeedSoftRedraw();
1375 }
1371}1376}
13721377
1373void UnityScreen::compizDamageNux(CompRegion const& damage)1378void UnityScreen::compizDamageNux(CompRegion const& damage)