8e5690e8f731f59818b2831a65e44c35e9b62e3b
WebKitGTK does not propagate XButton1/XButton2 (buttons 8 and 9) into
DOM events — event.button and event.buttons are always 0 for these
clicks. This prevents the frontend from detecting hardware back/forward
mouse buttons for history navigation.
Solution: patch Wails' window.c on Linux to intercept button-press-event
at the GTK signal level (before WebKit processes it). For button 8/9 we
call webkit_web_view_run_javascript() to dispatch a native CustomEvent
('verstak:navigate-back' / 'verstak:navigate-forward') into the page,
allowing the frontend to navigate history without any workaround on the
JS side.
The patch is applied automatically during build via scripts/build.sh:
go mod vendor → patch -p0 < patches/window.c.button-press.patch
Vendor directory is gitignored.
verstak-desktop
Verstak Core Platform + UI Shell — plugin runtime, capability registry, vault API, event bus, sync client
Description
Verstak Core Platform + UI Shell — plugin runtime, capability registry, vault API, event bus, sync client
56 MiB
Languages
Go
48.6%
JavaScript
31.8%
Svelte
14.4%
Shell
2.6%
TypeScript
2.5%