mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-07 11:23:33 +02:00
fix(wm): eagerly set new active border position
This commit adds SocketMessage::FocusWindow as a target to update the border position on at the end of the command handler. There are some occasions where the EVENT_SYSTEM_FOREGROUND notification isn't being sent (on newer versions of Win11, I think), so we can't count on the border being updated when that event is received by the event handler.
This commit is contained in:
@@ -868,6 +868,10 @@ impl WindowManager {
|
||||
| SocketMessage::Promote
|
||||
| SocketMessage::PromoteFocus
|
||||
| SocketMessage::Retile
|
||||
// Adding this one because sometimes EVENT_SYSTEM_FOREGROUND isn't
|
||||
// getting sent on FocusWindow, meaning the border won't be set
|
||||
// when processing events
|
||||
| SocketMessage::FocusWindow(_)
|
||||
| SocketMessage::InvisibleBorders(_)
|
||||
| SocketMessage::WorkAreaOffset(_)
|
||||
| SocketMessage::MoveWindow(_) => {
|
||||
|
||||
Reference in New Issue
Block a user