diff options
| author | Brandon Schaefer <brandontschaefer@gmail.com> | 2014-02-16 19:44:28 -0800 |
|---|---|---|
| committer | Brandon Schaefer <brandontschaefer@gmail.com> | 2014-02-16 19:44:28 -0800 |
| commit | f6c7cae34d0531745efdf436f24248e1f04c4f4c (patch) | |
| tree | d436d9f3d37fed3d2e59dfee13597dfa472a4bb0 /plugins | |
| parent | 3ad97930904760225e8067f61914552fb6eb2c54 (diff) | |
* Update more with monitors checks for PanelHeight. A couple moure to go.
* Still need to update the window buttons correctly when different monitor sizes. (bzr r3566.6.7)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index fbab6f113..11fde79bf 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -609,7 +609,9 @@ void UnityScreen::FillShadowRectForOutput(CompRect& shadowRect, CompOutput const if (_shadow_texture.empty ()) return; - float panel_h = static_cast<float>(panel_style_.PanelHeight()); + nux::Geometry const& geo = {output.x(), output.y(), output.width(), output.height()}; + int monitor = PluginAdapter::Default().MonitorGeometryIn(geo); + float panel_h = static_cast<float>(panel_style_.PanelHeight(monitor)); float shadowX = output.x(); float shadowY = output.y() + panel_h; float shadowWidth = output.width(); |
