From b6e261aef614a55acf8cf2ee600bff615abb6334 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 8 Apr 2025 17:19:21 -0700 Subject: [PATCH] fix(bar): avoid retile messages on ws switch This commit removes RetileWithResizeDimensions messages from the batches that are sent to komorebi when changing workspace. I'm not really sure why this was added in the first place, but removing it doesn't seem to impact layouts on workspace switch, and more important, by removing this message I'm no longer able to reproduce the sudden exits of komorebi.exe under sustained workspace switching calls made via the bar. --- komorebi-bar/src/widgets/komorebi.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/komorebi-bar/src/widgets/komorebi.rs b/komorebi-bar/src/widgets/komorebi.rs index 332c8bc7..36bc7ef9 100644 --- a/komorebi-bar/src/widgets/komorebi.rs +++ b/komorebi-bar/src/widgets/komorebi.rs @@ -292,7 +292,6 @@ impl BarWidget for Komorebi { komorebi_notification_state.monitor_index, i, ), - SocketMessage::RetileWithResizeDimensions, SocketMessage::MouseFollowsFocus(true), ]) .is_err() @@ -301,7 +300,6 @@ impl BarWidget for Komorebi { "could not send the following batch of messages to komorebi:\n MouseFollowsFocus(false)\n FocusMonitorWorkspaceNumber({}, {})\n - RetileWithResizeDimensions MouseFollowsFocus(true)\n", komorebi_notification_state.monitor_index, i, @@ -312,14 +310,12 @@ impl BarWidget for Komorebi { komorebi_notification_state.monitor_index, i, ), - SocketMessage::RetileWithResizeDimensions, ]) .is_err() { tracing::error!( "could not send the following batch of messages to komorebi:\n - FocusMonitorWorkspaceNumber({}, {})\n - RetileWithResizeDimensions", + FocusMonitorWorkspaceNumber({}, {})\n", komorebi_notification_state.monitor_index, i, );