From 05bef5012883d3c86fb023448890b3f6ca46746b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Fri, 18 Jul 2014 20:49:48 +0200 Subject: [PATCH] Fix position of ToolBox on second screen The offset of ToolBox on first screen was applied on all ToolBoxes REVIEW: 119358 --- shell/shellcorona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 60de8ff93..dc8b9b6f4 100644 --- a/shell/shellcorona.cpp +++ b/shell/shellcorona.cpp @@ -531,7 +531,7 @@ QRect ShellCorona::availableScreenRect(int id) const QRect r = view->geometry(); foreach (PanelView *v, d->panelViews) { - if (v->screen() == v->screen() && v->visibilityMode() != PanelView::AutoHide) { + if (v->screen() == view->screen() && v->visibilityMode() != PanelView::AutoHide) { switch (v->location()) { case Plasma::Types::LeftEdge: r.setLeft(r.left() + v->thickness());