mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01: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:
1 parent
e20b4aabc3
commit
e02ddd47cc
1 file changed
+4
@@ -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