diff options
| author | Brandon Schaefer <brandontschaefer@gmail.com> | 2014-02-17 20:47:43 -0800 |
|---|---|---|
| committer | Brandon Schaefer <brandontschaefer@gmail.com> | 2014-02-17 20:47:43 -0800 |
| commit | 3e630173857cf54c548ac14605f7e6b7063a1a88 (patch) | |
| tree | b0ea5fba8098928413523aaf49d7d645b7c2f260 /plugins | |
| parent | b2a373c6a91ae98e99b9a6f0e06da3fa69ae6452 (diff) | |
* Cleaned up parts in *EntryView*
* Cleaned up bits that use PanelHeight, (Missed some defaulted calls) (bzr r3566.6.12)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 7494b43ae..2ca1a32a5 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -614,8 +614,7 @@ void UnityScreen::FillShadowRectForOutput(CompRect& shadowRect, CompOutput const if (_shadow_texture.empty ()) return; - nux::Geometry const& geo = {output.x(), output.y(), output.width(), output.height()}; - int monitor = PluginAdapter::Default().MonitorGeometryIn(geo); + int monitor = PluginAdapter::Default().MonitorGeometryIn(NuxGeometryFromCompRect(output)); float panel_h = static_cast<float>(panel_style_.PanelHeight(monitor)); float shadowX = output.x(); float shadowY = output.y() + panel_h; @@ -2869,6 +2868,8 @@ bool UnityWindow::glDraw(const GLMatrix& matrix, } else { + WindowManager& wm = WindowManager::Default(); + if (window->id() == active_window) { draw_panel_shadow = DrawPanelShadow::BELOW_WINDOW; @@ -2879,8 +2880,9 @@ bool UnityWindow::glDraw(const GLMatrix& matrix, !(window->type() & CompWindowTypeFullscreenMask)) { auto const& output = uScreen->screen->currentOutputDev(); + int monitor = wm.MonitorGeometryIn(NuxGeometryFromCompRect(output)); - if (window->y() - window->border().top < output.y() + uScreen->panel_style_.PanelHeight()) + if (window->y() - window->border().top < output.y() + uScreen->panel_style_.PanelHeight(monitor)) { draw_panel_shadow = DrawPanelShadow::OVER_WINDOW; } |
