]> git.mdlowis.com Git - proto/labwc.git/commit
layers: don't send configure events in unmap handler
authortokyo4j <hrak1529@gmail.com>
Fri, 27 Jun 2025 06:10:06 +0000 (15:10 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 27 Jun 2025 21:03:37 +0000 (22:03 +0100)
commit6f70cd0d6e1865de8a06bdddad7e3410199a9014
tree35c19a5d500420fc2db7c42ae87ef59de858476c
parentcc0fe78ceb27a5d0f9586366bffe06c7bb334b5f
layers: don't send configure events in unmap handler

Alternative to 7bf08af which was reverted in the previous commit.

7bf08af fixed the problem that layer-shell clients are terminated when
it's unmapped, by sending configure events in node-destroy handler
rather than in unmap handler. But it caused a UAF bug when an output
with layer-shell clients is destroyed.

So this patch fixes the original issue by simply skipping the surface in
arrange_one_layer() if it's being unmapped.
include/layers.h
src/layers.c