Commit graph

16 commits

Author SHA1 Message Date
Vaxry
b94f149854
config: allow hashes for parsing colors (#14337) 2026-05-08 15:31:02 +01:00
Vaxry
94b90a2cb0
config/lua: add ExpressionVec2, allow using a table for vec2 rules (#14197) 2026-04-28 18:10:25 +01:00
Vaxry
5ba33f8461
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
2026-04-26 15:16:36 +01:00
Tom Englund
809b9b9e78
egl: move over to use hyprgraphics (#12988)
use the hyprgraphics helpers instead.
2026-04-05 19:37:07 +01:00
Ioannis Tzavaras
d7edc50eb4
tests: add unit tests for CDamageRing (#13995)
Adds GTest unit tests for CDamageRing in src/helpers/DamageRing.hpp.

Covers:
  - setSize: initial full damage, same-size no-op, resize re-damage, zero-size
  - damage: in-bounds accept, empty/out-of-bounds reject, partial clip
  - damageEntire: normal path and zero-size no-op
  - rotate: clears current, preserves as previous, wraps beyond ring length
  - getBufferDamage: age<=0 and age>ring return full screen, age=1 current only,
    age=2 accumulates previous, full ring accumulation, coalescing fallback,
    empty ring returns empty
  - hasChanged: false initially, true after damage/damageEntire, false after
    rotate, false for out-of-bounds damage

27 new test cases, all passing.
2026-04-05 14:47:58 +01:00
Ioannis Tzavaras
a3d262d148
tests: add unit tests for CTagKeeper (#13970)
Cover all public methods of the tag management helper:

- applyTag: set (+prefix), unset (-prefix), toggle (no prefix)
- applyTag with dynamic=true: star suffix appended
- isTagged: exact match, dynamic/star matching, strict mode
- isTagged: negative prefix inversion
- removeDynamicTag: removes star-suffixed entries
- getTags: returns full internal state
2026-04-04 13:26:54 +01:00
Pppp1116
4c42269ce6 monitor: centralize solitary and scanout eligibility checks 2026-04-04 08:26:24 -04:00
Ioannis Tzavaras
b2a29e1bf2
tests: add unit tests for MiscFunctions helpers (#13934) 2026-04-02 22:14:42 +01:00
Ioannis Tzavaras
36f184ead8
tests: add unit tests for Math transform utilities (#13935) 2026-04-01 00:16:23 +01:00
Ioannis Tzavaras
fdd2607b9b
tests: add unit tests for Math::CExpression (#13924) 2026-03-31 16:37:49 +01:00
Ioannis Tzavaras
1fdba8a8da
tests: add unit tests for Format utilities (#13923) 2026-03-31 16:37:23 +01:00
Ioannis Tzavaras
ef2e8dfd5f
tests: add unit tests for TransferFunction helpers (#13889) 2026-03-28 21:41:14 +00:00
Ioannis Tzavaras
fdf0e7a305
tests: add unit tests for CHyprColor (#13891) 2026-03-28 21:40:44 +00:00
Ioannis Tzavaras
0be78d099b
tests: add unit tests for CMType helpers (#13888) 2026-03-28 21:40:14 +00:00
Ioannis Tzavaras
5083057016
tests: add unit tests for Direction helpers (#13885)
* tests: add unit tests for Direction helpers

* clang-format: fix leading blank line in Direction test
2026-03-28 18:28:18 +00:00
Ioannis Tzavaras
ff5c6c2430
tests: add unit tests for ByteOperations helpers (#13886)
* tests: add unit tests for ByteOperations helpers

* clang-format: fix leading blank line in ByteOperations test
2026-03-28 18:28:14 +00:00