fix(cli): use force-quit if stop signal fails

This commit ensures that the komorebic stop command will force-quit
komorebi if the Stop SocketMessage handler fails.
This commit is contained in:
LGUG2Z
2024-04-20 13:26:09 -07:00
parent eac4c8e9b1
commit 793e81d43d
6 changed files with 39 additions and 7 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ schemars = "0.8"
serde = { version = "1", features = ["derive"] }
serde_json = { workspace = true }
strum = { version = "0.26", features = ["derive"] }
sysinfo = "0.30"
sysinfo = { workspace = true }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
+1 -1
View File
@@ -727,7 +727,7 @@ impl StaticConfig {
value.apply_globals()?;
let stackbar_mode = STACKBAR_MODE.lock().clone();
let stackbar_mode = *STACKBAR_MODE.lock();
for m in wm.monitors_mut() {
for w in m.workspaces_mut() {
+7 -4
View File
@@ -327,10 +327,13 @@ impl Workspace {
}
if let Some(stackbar) = container_topbar {
if let Ok(_) = stackbar.set_position(
&stackbar.get_position_from_container_layout(layout),
false,
) {
if stackbar
.set_position(
&stackbar.get_position_from_container_layout(layout),
false,
)
.is_ok()
{
stackbar.update(&container_windows, focused_hwnd)?;
let tab_height = STACKBAR_TAB_HEIGHT.load(Ordering::SeqCst);
let total_height = tab_height + container_padding;