aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/swaybg_command.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-09-26 21:28:16 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-09-26 21:33:54 +1000
commit4e4898e90f4d9b721091137a744deac335e73f12 (patch)
tree26baa780b691786d3f2eaf522a9cdc820caaa549 /sway/commands/swaybg_command.c
parentc43374cdf043e913b48d3cdb31d0f716a2cf58bd (diff)
Fix race condition crash when view unmaps + maps quickly
When a view unmaps, we start a transaction to destroy the container, then when the transaction completes we destroy the container and unset the view's container pointer. But if the view has remapped in the meantime, the view's container pointer will be pointing to a different container which should not be cleared. This adds a check to make sure the view is still pointing to the container being destroyed before clearing the pointer. The freeing of the title format is also removed as it is already freed when the view destroys in view_destroy.
Diffstat (limited to 'sway/commands/swaybg_command.c')
0 files changed, 0 insertions, 0 deletions