]> git.mdlowis.com Git - proto/labwc.git/commit
layer: handle output_destroy.notify without crash
authorJohan Malm <jgm323@gmail.com>
Sun, 24 Apr 2022 21:24:47 +0000 (22:24 +0100)
committerJohan Malm <jgm323@gmail.com>
Sun, 24 Apr 2022 21:24:47 +0000 (22:24 +0100)
commitbb2a98645b33751b3d62b45f2c27a88ace4eb62b
tree16b64abbaf1f44cc7422269b58428191171faed5
parent73930f7e0fa2448250bd54e62985e8c09035bf61
layer: handle output_destroy.notify without crash

Steps to reproduce crash:
- run nested with two outputs (e.g. WLR_WL_OUTPUTS=2 ./build/labwc)
- start panel on one output (e.g. waybar)
- close that output

Backtrace pointed to output_destroy_notify() at ../src/layers.c:92

Reported-by: @Consolatis
src/layers.c