Skip to content

Commit

Permalink
fix: correct workspace size with Y offset and bar on bottom (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvarc141 authored Oct 21, 2023
1 parent a521537 commit dc2ed66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GlazeWM.Domain/Workspaces/Workspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public override int Height
return Parent.Height - _outerGaps.Top - _outerGaps.Bottom;
}

return Parent.Height - _outerGaps.Top - _outerGaps.Bottom - floatBarOffsetY - _logicalBarHeight;
return Parent.Height - _outerGaps.Top - _outerGaps.Bottom - (barForMonitor.Position == BarPosition.Top ? floatBarOffsetY : -floatBarOffsetY) - _logicalBarHeight;
}
}

Expand All @@ -74,7 +74,7 @@ public override int Y
{
get
{
if (!_userConfigService.GetBarConfigForMonitor(Parent as Monitor).Enabled)
if (!_userConfigService.GetBarConfigForMonitor(Parent as Monitor).Enabled || barForMonitor.Position == BarPosition.Bottom)
{
return Parent.Y + _outerGaps.Top;
}
Expand Down

0 comments on commit dc2ed66

Please sign in to comment.