Commit Graph

8 Commits

Author SHA1 Message Date
jory 8aa84209a8 Implement working screenshot capture with wlr-screencopy
- Fixed brace mismatch and duplicate code in screenshot.rs
- Increased SHM pool size to 256MB for high-res displays
- Corrected wlr-screencopy protocol usage: send copy request in Buffer event
- Fixed background handling: set_background now updates LockedSurface.background
- Removed dummy background creation; screenshots set when ready
- Added format conversion for Xbgr8888 and Xrgb8888 to ARGB32
- Proper Y-inversion handling based on flags

The lock screen now displays captured screenshots as background.
Screenshots are taken immediately after lock, before UI is shown.
Matches swaylock-effects behavior: lock appears first, then screenshot
applies when ready (no blocking).

Fixes: black/red screen issues, screenshot not displaying.
2026-03-06 21:21:47 +01:00
jory bd6f1df391 Apply suggestions by rust 2026-03-05 15:02:45 +01:00
jory e440a86d97 Made sure we can actually render UI elements 2026-03-05 14:50:59 +01:00
jory 09b9a531cc Apply suggestions by rust 2026-03-05 14:20:45 +01:00
jory 76b48f7c70 First propper working version with actual pam 2026-03-05 14:19:08 +01:00
jory 4ed70fd858 First kinda working version 2026-03-05 12:40:53 +01:00
jory 9daa2fdd8f Removed control+c behaviour and updated keyboard handler and pam auth 2026-03-05 11:55:29 +01:00
jory a33488adc6 Initial commit of an attempt of making my own wayland locker like swaylock 2026-03-05 10:45:41 +01:00