aboutsummaryrefslogtreecommitdiff
path: root/examples/idle.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-07 18:15:24 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-10-07 19:49:28 +0000
commit5c382f6344718786842aaec0930010679cd61927 (patch)
tree1899e30a33a9ddc9c3ca6398bd129ba9102a1575 /examples/idle.c
parent3be6658ee7b6446e438e8d8c6c7bca3c0c0d4bc8 (diff)
drm-lease-v1: fix error codepath
We were crashing in the error codepath [1] when wlr_drm_create_lease() fails. To fix this, delay the creation of the wlr_drm_lease_v1 until the request is granted. Previously we were allocating that struct early without populating the drm_lease field. However that means we ended up with a half-constructed struct in the error codepath which is annoying to handle. [1]: https://github.com/swaywm/sway/issues/7204#issuecomment-1269797356
Diffstat (limited to 'examples/idle.c')
0 files changed, 0 insertions, 0 deletions