fix in multi-screen environment

--in some cases the containment screen and the dockView
screen arent the same for onPrimary case in order to calculate
property the dock geometry. This is important fix!
v0.7
Michail Vourlakos 7 years ago
parent 37a5543564
commit 0b3766221a

@ -746,7 +746,8 @@ inline void DockView::syncGeometry()
QRect availableScreenRect{this->screen()->geometry()};
if (formFactor() == Plasma::Types::Vertical) {
freeRegion = corona()->availableScreenRegion(this->containment()->screen());
int fixedScreen = onPrimary() ? dockCorona->screenPool()->primaryScreenId() : this->containment()->screen();
freeRegion = corona()->availableScreenRegion(fixedScreen);
maximumRect = maximumNormalGeometry();
QRegion availableRegion = freeRegion.intersected(maximumRect);
availableScreenRect = freeRegion.intersected(maximumRect).boundingRect();

Loading…
Cancel
Save