-
Notifications
You must be signed in to change notification settings - Fork 90
Description
Hello,
I've implemented a lockscreen project making use of this library to interact with wayland and use the ext-session-v1 protocol.
However, I've run into an annoying issue that seems to happen only when running Hyprland. The lock-screen consistently takes much longer to activate and render the first frame (~2s).
I've done extensive profiling to try and find the source of the problem of my own code and I'm confident this its related to this library as the existing example in the v0.19.2 branch has the same problem.
this problem also only occurs with lockscreens implemented with this library. This problem does NOT occur with either hyprlock or swaylock and both render instantly
Video Evidence:
Hyprland:
(notice the placeholder display before the initial render and that the total time is ~7s which is 2 seconds longer than the programmed runtime of 5 seconds)
2025-05-07.19-56-08.mp4
Sway:
(almost exact 5s runtime with no delay before initial frame)
2025-05-07.19-57-12.mp4
Steps to replicate:
- run hyprland (0.48.1 in my case but this has been happening since ive started using it a few versions before it)
- run the following commands in the terminal:
$ git clone https://github.com/Smithay/client-toolkit --branch v0.19.2
$ cd client-toolkit
$ cargo build --example session_lock --release
$ time ./target/release/examples/session_lock