summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2013-11-07 20:47:53 +0100
committerAndrea Azzarone <azzaronea@gmail.com>2013-11-07 20:47:53 +0100
commit6755e36cb3bd3caa96c8ac0c199774f1c53ed1aa (patch)
tree7b4ed5e763b22276c9287df72cf9a02950e500e3 /unity-shared
parentea1f4afc1daf6d4fca2673ae87bdf241b89aa517 (diff)
parent6a2e5491e487dbbeed835b3c962fbba812fb617d (diff)
Merge lp:unity trunk.
(bzr r3587.3.3)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/BackgroundEffectHelper.cpp2
-rw-r--r--unity-shared/PlacesOverlayVScrollBar.cpp3
-rw-r--r--unity-shared/PluginAdapter.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/unity-shared/BackgroundEffectHelper.cpp b/unity-shared/BackgroundEffectHelper.cpp
index d48aad978..0d86d3aba 100644
--- a/unity-shared/BackgroundEffectHelper.cpp
+++ b/unity-shared/BackgroundEffectHelper.cpp
@@ -74,7 +74,7 @@ void BackgroundEffectHelper::ProcessDamage(nux::Geometry const& geo)
if (bg_effect_helper->cache_dirty || !bg_effect_helper->owner || !bg_effect_helper->enabled)
continue;
- if (!geo.Intersect(bg_effect_helper->blur_geometry_).IsNull())
+ if (geo.IsIntersecting(bg_effect_helper->blur_geometry_))
{
bg_effect_helper->DirtyCache();
}
diff --git a/unity-shared/PlacesOverlayVScrollBar.cpp b/unity-shared/PlacesOverlayVScrollBar.cpp
index fc5d2daac..e16f4b848 100644
--- a/unity-shared/PlacesOverlayVScrollBar.cpp
+++ b/unity-shared/PlacesOverlayVScrollBar.cpp
@@ -209,9 +209,8 @@ void PlacesOverlayVScrollBar::CheckIfThumbIsInsideSlider()
{
nux::Geometry const& slider_geo = _slider->GetAbsoluteGeometry();
nux::Geometry const& thumb_geo = overlay_window_->GetThumbGeometry();
- nux::Geometry const& intersection = (thumb_geo.Intersect(slider_geo));
- if (!intersection.IsNull())
+ if (thumb_geo.IsIntersecting(slider_geo))
{
ResetConnector();
overlay_window_->ThumbInsideSlider();
diff --git a/unity-shared/PluginAdapter.cpp b/unity-shared/PluginAdapter.cpp
index b233f3067..34bead63d 100644
--- a/unity-shared/PluginAdapter.cpp
+++ b/unity-shared/PluginAdapter.cpp
@@ -573,7 +573,7 @@ bool PluginAdapter::IsWindowObscured(Window window_id) const
&& sibling->isMapped()
&& sibling->isViewable()
&& (sibling->state() & MAXIMIZE_STATE) == MAXIMIZE_STATE
- && !GetWindowGeometry(sibling->id()).Intersect(win_geo).IsNull())
+ && GetWindowGeometry(sibling->id()).IsIntersecting(win_geo))
{
return true;
}