]> git.mdlowis.com Git - proto/labwc.git/commit
session-lock: make session_lock_output_create() safe to call twice
authorJohn Lindgren <john@jlindgren.net>
Sun, 20 Oct 2024 00:02:08 +0000 (20:02 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 29 Oct 2024 21:41:48 +0000 (21:41 +0000)
commitf394d03600799e442c241f3235556b3502690a93
tree09ef547097f9b2e5b2ecf2965e3746750f78f874
parent7912665b0f3a541e5d766c7942446716df5e839d
session-lock: make session_lock_output_create() safe to call twice

session_lock_output_create() can safely no-op if the lock output has
already been created for the specified output. This scenario doesn't
happen currently, and the change is in preparation for some other
output-related changes I am working on. But I think it's a nice code
improvement worth merging separately.
src/session-lock.c