Fix crash when ext-session-lock-v1 is unavailable during startup#1007
Fix crash when ext-session-lock-v1 is unavailable during startup#1007B2krobbery wants to merge 1 commit into
Conversation
|
Uhm no? roundtrip is "Block until all pending request are processed by the server". |
|
That makes sense, thanks for clarifying. This behavior only happens when launching via |
|
probably a compositor bug but shouldn't happen, odd |
|
Got it, thanks. |
|
Should be fixed in the linked hyprland PR |
|
Got it, thanks for the fix and for looking into this. |
Fixes #999
When hyprlock is launched immediately at compositor startup,
ext-session-lock-v1 may not yet be available.
Previously this was treated as a fatal error, causing hyprlock
to abort.
This change retries binding for a short period, allowing the
compositor to finish initialization before failing.
Note: This introduces a short blocking wait (with brief delays and additional
Wayland roundtrips) during startup, ensuring globals are processed and avoiding
premature aborts (maximum ~500 ms).