Commit graph

438 commits

Author SHA1 Message Date
Jérémie RODON
06bcaacb8b
Merge 617bcf7139 into 274154f92a 2026-05-19 08:17:22 +00:00
Jérémie Rodon
617bcf7139 chore(fingerprint): clang-format 2026-05-19 10:17:14 +02:00
Tom Englund
274154f92a
screencopy: flip the right 10bit formats (#1016)
seems the flip logic was flipping wrong formats
flip the right ones to fix red/blue swap on 10bit formats.
2026-05-15 14:51:20 +00:00
Maximilian Seidler
98fb021216
lockSurface: set eglSwapInterval to 0 (#1015)
Co-authored-by: tmbull <tristan.m.bull@gmail.com>
2026-05-14 14:28:14 +00:00
Maximilian Seidler
c86727a89b
core: skip binding to dmabuf when SCMODE is 1 (#1014)
Co-authored-by: tmbull <tristan.m.bull@gmail.com>
2026-05-14 14:04:58 +00:00
Jérémie Rodon
53a47186de chore(fingerprint): using Hyprutils::CLI::CLogger 2026-05-09 11:02:54 +02:00
Jérémie Rodon
7c2822bfdb refactor(fingerprint): consolidate activity notification 2026-05-09 11:02:54 +02:00
Jérémie Rodon
9f1ff2af51 fix(fingerprint): prevent sensor timeout on long-running sessions
Introduces an inactivity timeout mechanism that pauses fingerprint verification after a configurable period (default: 0 second/disabled) when no user input is detected. This prevents some device drivers from disconnecting or disabling the sensor during extended lock sessions.

The verification automatically resumes when user activity is detected (mouse movement, clicks, or keyboard input). The sensor is properly released when paused and re-claimed when resuming.

May fixe #702 though that's unclear as the issue is not well documented
2026-05-09 11:02:51 +02:00
Maximilian Seidler
b5a8374b01
background: fix condition for image reload when crossfade is still in progress (#1008) 2026-05-03 10:31:56 +00:00
Maximilian Seidler
37f615cff7
core: more obvious api around isUnlocked related logic (#1004) 2026-04-29 17:59:00 +00:00
Visal Vijay
c9e01b04fc
config: prevent crash on invalid numeric values (#1002) 2026-04-29 17:48:58 +00:00
Maximilian Seidler
927e09fb7d
pam: start conversation right away (#1003)
* Revert "auth: don't start pam conversation before the initial input happens (#409)"

This reverts commit 3bedae4436.

* pam: fix some logic cleanup
2026-04-29 17:35:26 +00:00
davc0n
d332164dd9
config: fix error message if file not found (#996)
Fixes a wrong path, `/etc/hypr` -> `/etc/xdg`, and specifies the lookup
order.
2026-04-20 07:21:20 +00:00
d75e93f8ee
version: bump to 0.9.5 2026-04-18 10:44:05 +01:00
Maximilian Seidler
64ad702b26
input-field: fix placeholder not updating correctly (#995)
Bug introduced in #959, reference made the config text be overwritten
2026-04-17 14:08:58 +00:00
Maximilian Seidler
78c1d26da7
core: don't register dmabuf when screencopy is not required (#992) 2026-04-17 13:45:14 +00:00
Maximilian Seidler
a466de1431
core: eglReleaseThread when no outputs and egl error logging (#994)
* core: eglReleaseThread when we have no outputs

This fixes monitor on/off on the somewhat broken nvidia 580 drivers
and potentially other nvidia drivers as well.

* lockSurface: discard frameCallback when eglSwapBuffers fails

* egl: log more errors
2026-04-17 13:34:18 +00:00
67b302953b
CI: use org-wide actions 2026-04-17 15:18:55 +03:00
Maximilian Seidler
34532cbd80 animation: copy active animations for save iteration 2026-04-15 09:51:34 +02:00
824c8b4123
version: bump to 0.9.4 2026-04-15 00:38:15 +01:00
Maximilian Seidler
ca2aa5e5e3
lock-surface: improved handling of egl window and surface creation (#988)
* fix: handle EGL surface creation failure gracefully instead of aborting

When GPU VRAM is exhausted, eglCreatePlatformWindowSurfaceEXT and
wl_egl_window_create can return null. Previously this triggered
RASSERT -> std::abort(), crashing hyprlock and leaving the session
in a broken lock state.

Replace RASSERT with error logging and early return, setting
readyForFrame = false so the next configure event retries the
allocation. This allows hyprlock to survive transient GPU memory
pressure rather than crashing.

Fixes: https://github.com/hyprwm/hyprlock/issues/986

* lock-surface: improve error handling for lock surface configure

---------

Co-authored-by: Nilesh <nilesh@cloudgeni.us>
2026-04-13 05:04:24 +00:00
Hugo Cartigny
24c66d1be8
input-field: allow smaller dots_size (#938)
Fixes #937
2026-03-31 15:03:43 +00:00
Maximilian Seidler
4e4f03cc1d
core: use Hyprutils::CLI (#977)
* core: use Hyprutils::CLI::CLogger

* core: use Hyprutils::CLI::CArgumentParser and validate config exists
2026-03-31 14:56:08 +00:00
Maximilian Seidler
9f9ee0c2f0
label: fix alpha rendering (#979)
Fixes #975
2026-03-28 16:00:39 +00:00
Maximilian Seidler
d6c02b49e6
label: fix sigusr2 update when reload time is 0 (#978)
Fixes #976
2026-03-28 15:50:10 +00:00
rain
e1dca578ed
input-field: add check_text option (#959) 2026-03-28 15:17:33 +00:00
Maximilian Seidler
768ade88a8
pam: get username once (#974)
* pam: fix username race by using getpwuid_r instead of getpwuid

getpwuid() returns a pointer into a static buffer shared across all
threads. Any getpw*/getpwent call from another thread — including
those made internally by PAM modules during authentication — will
overwrite it before pam_start() reads pw_name, causing hyprlock to
authenticate as a random system user (root, bin, systemd-network)
or fail with 'user unknown'.

Replace with getpwuid_r(), which writes into a caller-supplied buffer,
and copy pw_name into a std::string before calling pam_start().

* pam: get username once

Instead of retrieving the username via getpwuid_r as in a69f526c95,
get the username once when initializing CPam and save it in a string.
This should be sufficent for making sure there are no problems with the
static buffer returned by getpwuid and is simpler.

* misc: clang-format

---------

Co-authored-by: mcgi5sr2 <mcgi5sr2@gmail.com>
2026-03-23 16:21:13 +00:00
d7079a1248
version: bump to 0.9.3 2026-03-22 21:58:05 +00:00
512e71d05c
flake.lock: update 2026-03-02 18:31:14 +02:00
4db980ab47
nix: separate overlay with deps 2026-03-02 18:30:57 +02:00
38a314298b
treewide: alejandra -> nixfmt 2026-03-02 18:30:05 +02:00
nikitax44
5ba5ff5b94
background: run reload_cmd in configure if path is empty (#950) 2026-02-20 16:49:58 +00:00
Sjoerd Siebinga
b3a1076c03
core: fix use-after-free segfault in async resource widget callbacks (#961)
Properly lock AWP<IWidget> weak pointers before calling onAssetUpdate()
to prevent use-after-free when widgets are destroyed during shutdown or
output removal. Guard timer callback against null g_asyncResourceManager.
Fix destruction order to join threads before resetting globals.
2026-02-20 13:46:42 +00:00
Maximilian Seidler
ef3017f5ef nix: remove sdbus-cpp overlay 2025-12-20 13:31:21 +02:00
William Escande
d099f87d36
pam: prevent nullpointer crash when user passwd isn't found (#928) 2025-12-19 15:53:53 +00:00
Maximilian Seidler
e2da7c6b1f
animation: migrate PHLANIMVAR from SP to UP (#920)
* animation: migrate PHLANIMVAR from SP to UP

* use create2

* bump hyprutils and flake update
2025-12-10 09:15:39 +00:00
Nathan.Woodburn/
98b86752fe
background: reload screenshot if reload_cmd specified (#903) 2025-10-28 18:20:34 +00:00
Maximilian Seidler
36ec73f166
cmake: add "libpam" as an alias for "pam" (#893) 2025-10-09 15:32:29 +00:00
Maximilian Seidler
bdc44ab5d6
flake.lock: update (#890) 2025-10-08 08:53:37 +00:00
Maximilian Seidler
de2cc5bd54
core: migrate to Hyprutils::CAsyncResourceGatherer and improve resource handling (#879)
* core: use Hyprgraphics::CAsyncResourceGatherer

* core: move screencopy frame generation to the new resource manager

* core: introduce a dedicated onAssetUpdate callback

* check for unloaded before finished and some cleanup

* also allow for dynamic label resource deduplication

use a simple counter instead of a timestamp to allow the same
widget on a different monitor to reuse a text cmd resource.

I didn't do this before, because I was worried about two labels that use
the same command with different reload times. I mitigated that by just
incrementing the revision by the time interval. This should be sufficent
to avoid clashes.

* don't render within onAssetUpdate to avoid duplicate renders

another much improvement for multi monitor setups.
allows updating within the same frame for most labels.

* remove nvidia workaround :)

I tested and it seems like the resource manager revision makes
the nvidia workaround obsolete.
2025-10-08 08:45:09 +00:00
Maximilian Seidler
c8a6768dca
misc: remove hyprland-protocols from README (#887)
hyprlock doesn't use it currently
2025-10-04 10:07:28 +00:00
Maximilian Seidler
3cb799b184
core: nvidia workaround destroy renderer before EGL (#884) 2025-10-03 11:58:38 +00:00
c48279d1e0
version: bump to 0.9.2 2025-10-02 11:03:05 +01:00
Maximilian Seidler
7f769fa993 Revert "background: unload screenshots when monitor is removed"
Pushed to the wrong remote :(
This reverts commit 1380ca04ae.
2025-09-17 17:54:49 +02:00
Maximilian Seidler
1380ca04ae background: unload screenshots when monitor is removed
This is just for testing as of now. No merging.
2025-09-17 17:51:34 +02:00
Maximilian Seidler
61b36c64a8
renderer: fix nvidia workaround (#878) 2025-09-17 15:51:17 +00:00
davc0n
a7f2634a9e
Refactor asset management to use shared_ptr (#870)
* Refactor asset management to use shared_ptr

* Replace shared_ptr with ASP for SPreloadedAsset usage
2025-09-15 18:14:34 +00:00
Maximilian Seidler
450ae1e5f0
lock-surface: remove redundant sendDestroy calls (#868)
They are already part of the generated protocol code.
2025-09-10 16:11:06 +00:00
Maximilian Seidler
04cfdc4e5b
core: recreate rendering context when monitors are empty on nvidia (#845)
This is a workaround for nvidia that can hopefully be removed at some point.
2025-09-04 07:04:54 +00:00
Maximilian Seidler
cedbb24472
renderer: move asyncResourceGatherer out of the renderer (#863)
* lockSurface: cleanup some resources

* renderer: move asyncResourceGatherer out of CRenderer

In preperation to recreate the rendering context.
2025-09-03 09:32:12 +00:00