~ahesford

Recent activity

[PATCH kanshi] Forget current profile on match_and_apply failure 3 months ago

From Andrew J. Hesford to ~emersion/public-inbox

When an output changes and match_and_apply() attempts to match a new
profile, any failure to match (or apply) a new profile would prevent
re-application of any previously matched profile, even if it matches
after a subsequent output change. The right conceptual behavior is to
forget a no-longer-applicable profile after match_and_apply fails, which
fixes this issue.

Fixes: https://todo.sr.ht/~emersion/kanshi/100

---
 main.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
[message trimmed]