aboutsummaryrefslogtreecommitdiff
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2021-10-19 07:54:36 +0200
committerSimon Ser <contact@emersion.fr>2022-01-07 18:25:13 +0100
commitf92329701b0983ec41fec29d3abc5c751cbe4a28 (patch)
treeb6bfb249e29b08aa17dbc76e0e7ed43bcf21969f /sway/criteria.c
parent107d15fafde279cef0855197e243b64fbffa5c3e (diff)
container: Fix crash when view unmaps + maps quickly
Followup on 4e4898e90f. If a view quickly maps and unmaps repeatedly, there will be multiple destroyed containers with same view in a single transaction. Each of these containers will then try to destroy this view, resulting in use after free. The container should only destroy the view if the view still belongs to the container. Simple reproducer: couple XMapWindow + XUnmapWindow in a loop followed by XDestroyWindow. See #6605
Diffstat (limited to 'sway/criteria.c')
0 files changed, 0 insertions, 0 deletions