diff options
| author | Brandon Schaefer <brandon.schaefer@canonical.com> | 2012-10-05 09:01:49 -0700 |
|---|---|---|
| committer | Brandon Schaefer <brandon.schaefer@canonical.com> | 2012-10-05 09:01:49 -0700 |
| commit | d79f55636179979cb2ee0f7a129dc1737dd8b478 (patch) | |
| tree | 1205278ac5a5ad76d476dd52331fd1c3f59a88be /plugins/unityshell | |
| parent | 72216833b3ef28804117de5273b90e20897c73cb (diff) | |
* added const
(bzr r2787.3.5)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 735060223..26e1e97bc 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -1534,11 +1534,11 @@ void UnityScreen::handleEvent(XEvent* event) if (dash_controller_->IsVisible()) { nux::Point pt(event->xbutton.x_root, event->xbutton.y_root); - nux::Geometry dash_geo = dash_controller_->GetInputWindowGeometry(); + nux::Geometry const& dash_geo = dash_controller_->GetInputWindowGeometry(); Window dash_xid = dash_controller_->window()->GetInputWindowId(); Window top_xid = wm->GetTopWindowAbove(dash_xid); - nux::Geometry on_top_geo = wm->GetWindowGeometry(top_xid); + nux::Geometry const& on_top_geo = wm->GetWindowGeometry(top_xid); if (!dash_geo.IsInside(pt) && !DoesPointIntersectUnityGeos(pt) && !on_top_geo.IsInside(pt)) { @@ -1549,11 +1549,11 @@ void UnityScreen::handleEvent(XEvent* event) if (hud_controller_->IsVisible()) { nux::Point pt(event->xbutton.x_root, event->xbutton.y_root); - nux::Geometry hud_geo = hud_controller_->GetInputWindowGeometry(); + nux::Geometry const& hud_geo = hud_controller_->GetInputWindowGeometry(); Window hud_xid = hud_controller_->window()->GetInputWindowId(); Window top_xid = wm->GetTopWindowAbove(hud_xid); - nux::Geometry on_top_geo = wm->GetWindowGeometry(top_xid); + nux::Geometry const& on_top_geo = wm->GetWindowGeometry(top_xid); if (!hud_geo.IsInside(pt) && !DoesPointIntersectUnityGeos(pt) && !on_top_geo.IsInside(pt)) { |
