Skip to content

Commit

Permalink
fix(wm): eagerly set new active border position
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LGUG2Z committed Oct 21, 2022
1 parent e20b4aa commit e02ddd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions komorebi/src/process_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {
Expand Down

0 comments on commit e02ddd4

Please sign in to comment.