mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1167] [MERGED] fix(border): stop removing borders on wrong monitors #1234
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1167
Author: @alex-ds13
Created: 12/9/2024
Status: ✅ Merged
Merged: 12/9/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/borders-vanishing📝 Commits (1)
bd1ca3dfix(border): stop removing borders on wrong monitors📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
komorebi/src/border_manager/mod.rs(+5 -3)📄 Description
There is a bug where the border manager is checking if the foreground window is maximized to remove all the borders on that monitor. However this check for
is_maximizeddidn't check if the foreground window in question was on the current monitor being iterated through. So when the foreground (focused) window was maximized, every borders on all monitors were being removed.This fix makes sure we check if the foreground window is on the monitor being iterated through and only remove the borders on that specific monitor.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.