You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c23959
Browse filesBrowse the repository at this point in the historyBrowse files
v0.4.1 — macOS window drag (#22): grant start_dragging permission (the real fix) (#25)
The v0.4.0 fix used `-webkit-app-region: drag`, a Chromium/Electron feature
that macOS WKWebView ignores — a no-op, so the window still couldn't be dragged
with a single tab.
Real root cause: dragging is driven by Tauri's `data-tauri-drag-region` →
`invoke('plugin:window|start_dragging')`, but the remote-content capability
granted only `core:event:default`, so the command was denied and the handler
silently did nothing. (With 2+ tabs the native tab bar supplied its own drag
region — why the bug only showed with one tab.)
Fix:
- capabilities/content.json: grant `core:window:allow-start-dragging` (narrow —
window drag only; documented exception to the "events-only for remote
content" stance, invariant #7).
- bridge.rs: set `data-tauri-drag-region="deep"` so the whole titlebar drags
(drag.js auto-exempts buttons/links/inputs); drop the no-op CSS.
Verified in the generated ACL (start_dragging now permitted for main-*/tab-*),
and confirmed working live on macOS by the maintainer (single-tab window drags
from the title bar). fmt/clippy(-D warnings)/test(12) green.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src-tauri/capabilities/content.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"$schema": "../gen/schemas/desktop-schema.json",
3
3
"identifier": "content-windows",
4
-
"description": "Minimal IPC for remote hermes-webui content webviews: injected bridge scripts may only emit events",
4
+
"description": "Minimal IPC for remote hermes-webui content webviews: injected bridge scripts may emit events, plus window-drag so the page titlebar can move the window (issue #22)",
0 commit comments