]> git.mdlowis.com Git - proto/labwc.git/commit
ssd: Add missing state updates
authorJohn Lindgren <john@jlindgren.net>
Sat, 26 Nov 2022 07:23:15 +0000 (02:23 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 26 Nov 2022 18:02:24 +0000 (18:02 +0000)
commitd6aea3e58f90db35e4f863e0244d7a9a9ba8b720
treeec1520d8d085a43293aa879f0f8593500ce9b374
parentcb16da5a78bf27302d2fd756e029fd6afe238999
ssd: Add missing state updates

- Update `ssd.state` in `ssd_create()` to avoid doing unnecessary work in
  the next call to `ssd_update_geometry()`
- Reset `ssd.margin` in `ssd_destroy()` to avoid accidentally using stale
  values
src/ssd/ssd.c