Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix windows not shutting down cleanly because of handy (#1732)

CJ Pais0470d9ad1745
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 7927855e..90a7d94e 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -6195,7 +6195,7 @@ dependencies = [
[[package]]
name = "tao"
version = "0.35.3"
-source = "git+https://github.com/tauri-apps/tao?rev=07f3742b1833b64be27b1ef991e38d557d4276c9#07f3742b1833b64be27b1ef991e38d557d4276c9"
+source = "git+https://github.com/cjpais/tao?rev=c3bee28c1d446d95f08c95c3b6f8d4bde052b876#c3bee28c1d446d95f08c95c3b6f8d4bde052b876"
dependencies = [
"bitflags 2.11.0",
"block2",
@@ -6234,7 +6234,7 @@ dependencies = [
[[package]]
name = "tao-macros"
version = "0.1.3"
-source = "git+https://github.com/tauri-apps/tao?rev=07f3742b1833b64be27b1ef991e38d557d4276c9#07f3742b1833b64be27b1ef991e38d557d4276c9"
+source = "git+https://github.com/cjpais/tao?rev=c3bee28c1d446d95f08c95c3b6f8d4bde052b876#c3bee28c1d446d95f08c95c3b6f8d4bde052b876"
dependencies = [
"proc-macro2",
"quote",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 559a01b8..d63e985c 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -150,14 +150,21 @@ transcribe-cpp = { version = "0.1.3", default-features = false, features = [
# (tao #1218, fixes tauri #11856 — dead titlebar buttons after visible(false) →
# show()). Drop this once a tao release containing it lands in tauri.
#
+# The rev is a cjpais/tao branch, not upstream: dev past 0.35.3 also carries
+# tao #1231 (removed window subclassing), which left the thread event target's
+# WNDPROC falling through to DefSubclassProc. On a no-longer-subclassed window
+# that returns 0, so WM_QUERYENDSESSION answered FALSE and vetoed Windows
+# shutdown (Handy #1710). `handy` = 07f3742b + a cherry-pick of tao #1274
+# (DefSubclassProc → DefWindowProcW). Repoint at upstream once #1274 merges.
+#
# tao-macros must be patched to the SAME rev even though nothing here depends on
# it directly: wry pulls tao-macros 0.1.3 from crates.io, so without this the
# lockfile carries two tao-macros 0.1.3 entries (registry + git). cargo tolerates
# that, but Nix's importCargoLock vendors both to the same `tao-macros-0.1.3`
# dir and fails with a symlink collision. Unifying the source removes the dup.
[patch.crates-io]
-tao = { git = "https://github.com/tauri-apps/tao", rev = "07f3742b1833b64be27b1ef991e38d557d4276c9" }
-tao-macros = { git = "https://github.com/tauri-apps/tao", rev = "07f3742b1833b64be27b1ef991e38d557d4276c9" }
+tao = { git = "https://github.com/cjpais/tao", rev = "c3bee28c1d446d95f08c95c3b6f8d4bde052b876" }
+tao-macros = { git = "https://github.com/cjpais/tao", rev = "c3bee28c1d446d95f08c95c3b6f8d4bde052b876" }
[dev-dependencies]
tempfile = "3"