From 88ff52f39a92c66ec82511ab815a33316c4bd1a7 Mon Sep 17 00:00:00 2001 From: Nakul Srivastava Date: Tue, 24 Nov 2026 14:48:54 +0530 Subject: [PATCH 1/2] fix(capture): keep the pointer moving on the capture screen The capture window was opaque, monitor-sized and always on top, so Windows could hand it straight to the GPU (independent flip). On some drivers the pointer then stopped updating over the overlay until something forced DWM composition; a running screen recording made it move again. Make the window transparent like the on-screen drawing window so DWM always composes it. The page still paints an opaque background and the snapshot, so it looks the same. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG-PUBLIC.md | 6 ++++++ apps/desktop/src-tauri/src/lib.rs | 23 +++++++++++++++++++++++ apps/desktop/src-tauri/tauri.conf.json | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-PUBLIC.md b/CHANGELOG-PUBLIC.md index fd9b0ac..10d6e16 100644 --- a/CHANGELOG-PUBLIC.md +++ b/CHANGELOG-PUBLIC.md @@ -2,6 +2,12 @@ User-facing changes only, grouped by date under Added / Improved / Fixed. +## Unreleased + +### Fixed + +- The pointer no longer freezes on the capture screen on some graphics cards. + ## 0.6.0 — 2026-11-21 ### Added diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index e137e0c..80d8c81 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -3667,6 +3667,29 @@ mod window_config_tests { assert_eq!(capture["decorations"].as_bool(), Some(false)); } + /// An opaque, monitor-sized, always-on-top window lets Windows hand it straight to the + /// GPU (independent flip / multiplane overlay). On some drivers the pointer then stops + /// updating over the capture overlay until something forces composition (a screen + /// recording fixed it). A transparent window always goes through DWM composition, the + /// same as the on-screen drawing window, whose pointer never froze. The page still paints + /// an opaque background and the frozen snapshot, so nothing shows through. + #[test] + fn capture_window_is_transparent_so_dwm_always_composes_it() { + let config: tauri::utils::config::Config = + serde_json::from_str(include_str!("../tauri.conf.json")) + .expect("Tauri config should parse"); + let capture = config + .app + .windows + .iter() + .find(|window| window.label == "capture") + .expect("Tauri config should contain a capture window"); + + assert!(capture.transparent); + assert!(capture.always_on_top); + assert!(!capture.visible); + } + /// Reopening the dashboard after Close rebuilds it from this same entry; it must stay /// undecorated (the page draws its own title bar) and transparent (for the glass). #[test] diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index d7a1844..d4833b9 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -34,7 +34,7 @@ "fullscreen": false, "decorations": false, "shadow": false, - "transparent": false, + "transparent": true, "resizable": false, "alwaysOnTop": true, "skipTaskbar": true, From b11353abb2e94b8fc43b2b1ec3b4516d4ccb81c6 Mon Sep 17 00:00:00 2001 From: Nakul Srivastava Date: Tue, 24 Nov 2026 15:29:30 +0530 Subject: [PATCH 2/2] chore(release): v0.6.1 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG-PUBLIC.md | 2 +- apps/desktop/package.json | 2 +- apps/desktop/src-tauri/Cargo.lock | 2 +- apps/desktop/src-tauri/Cargo.toml | 2 +- apps/desktop/src-tauri/tauri.conf.json | 2 +- package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG-PUBLIC.md b/CHANGELOG-PUBLIC.md index 10d6e16..2d373f0 100644 --- a/CHANGELOG-PUBLIC.md +++ b/CHANGELOG-PUBLIC.md @@ -2,7 +2,7 @@ User-facing changes only, grouped by date under Added / Improved / Fixed. -## Unreleased +## 0.6.1 — 2026-11-24 ### Fixed diff --git a/apps/desktop/package.json b/apps/desktop/package.json index b412506..b356ceb 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@snaphub/desktop", - "version": "0.6.0", + "version": "0.6.1", "private": true, "type": "module", "scripts": { diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lock index 9091400..60a0327 100644 --- a/apps/desktop/src-tauri/Cargo.lock +++ b/apps/desktop/src-tauri/Cargo.lock @@ -616,7 +616,7 @@ dependencies = [ [[package]] name = "capkit-desktop" -version = "0.6.0" +version = "0.6.1" dependencies = [ "ab_glyph", "arboard", diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml index a3856e7..020269e 100644 --- a/apps/desktop/src-tauri/Cargo.toml +++ b/apps/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "capkit-desktop" -version = "0.6.0" +version = "0.6.1" description = "CapKit lightweight desktop toolkit to capture, record, and showcase" authors = ["CapKit"] edition = "2024" diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index d4833b9..bbb8624 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "CapKit", - "version": "0.6.0", + "version": "0.6.1", "identifier": "com.snaphub.desktop", "build": { "beforeDevCommand": "pnpm dev", diff --git a/package.json b/package.json index ceeea5c..38fff24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "snaphub", - "version": "0.6.0", + "version": "0.6.1", "private": true, "packageManager": "pnpm@11.14.0", "scripts": {