Skip to content

Fix Lua configuration and animation crashes - #23

Open
Alyx-Clark wants to merge 1 commit into
yz778:mainfrom
Alyx-Clark:fix/lua-config-and-animation
Open

Fix Lua configuration and animation crashes#23
Alyx-Clark wants to merge 1 commit into
yz778:mainfrom
Alyx-Clark:fix/lua-config-and-animation

Conversation

@Alyx-Clark

@Alyx-Clark Alyx-Clark commented Sep 10, 2026

Copy link
Copy Markdown

Opening Hyprview with a Lua Hyprland configuration can dereference a null legacy
configuration value. After fixing that, animation callbacks can still abort when
they try to lock a weak reference to a uniquely owned animation.

Register and read settings through Hyprland's typed configuration API, compare
animation pointers without locking them, and expose
hl.plugin.hyprview.toggle(args) for Lua callbacks. Explicit off now also closes
an overview opened with on. Lua gestures remain available while the overview is
open so a separate downward gesture can dismiss it. Legacy gesture registration
and blocking are retained for legacy configurations.

Includes Lua examples and a nested integration test that targets only the
compositor it launches. Physical gesture behavior was confirmed on the local desktop;
the automated test invokes the same Lua callbacks directly.

Validation: built against Hyprland 0.56.2; the nested integration test passed at
100% and 200% scale, including three open/close cycles across two workspaces,
reload/reopen, and unload while open. No fullscreen behavior changes are included
in this compatibility commit. Legacy registration was retained and its typed
value support checked against the matching Hyprland source; legacy runtime
behavior and older Hyprland versions were not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant