Skip to content

Commit 05fbead

Browse files
committed
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.
1 parent 478aa2b commit 05fbead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/x11/panel_window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ void XPanelWindow::updateDimensions(bool propagate) {
251251

252252
if (panel->mTrackedScreen != this->mTrackedScreen) continue;
253253

254-
auto edge = this->bcExclusionEdge.value();
255-
auto exclusiveZone = this->bcExclusiveZone.value();
254+
auto edge = panel->bcExclusionEdge.value();
255+
auto exclusiveZone = panel->bcExclusiveZone.value();
256256

257257
screenGeometry.adjust(
258258
edge == Qt::LeftEdge ? exclusiveZone : 0,

0 commit comments

Comments
 (0)