mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
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!
This commit is contained in:
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…
x
Reference in New Issue
Block a user