x11/panelwindow: calc screen geom with exclusions of other panels

Fixes a typo in 9604302 which calculated panel stack offsets from the
current panel instead of others in the stack.
This commit is contained in:
outfoxxed 2025-07-13 22:54:20 -07:00
parent 478aa2bda1
commit 05fbead660
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -251,8 +251,8 @@ void XPanelWindow::updateDimensions(bool propagate) {
if (panel->mTrackedScreen != this->mTrackedScreen) continue;
auto edge = this->bcExclusionEdge.value();
auto exclusiveZone = this->bcExclusiveZone.value();
auto edge = panel->bcExclusionEdge.value();
auto exclusiveZone = panel->bcExclusiveZone.value();
screenGeometry.adjust(
edge == Qt::LeftEdge ? exclusiveZone : 0,