aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/seat.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-12-10 19:54:16 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-12-10 21:09:48 -0500
commitb7f0656fab355f6dc83792794d9f1be780915d0b (patch)
tree6f3c7d8935afb26e70a99bd75c403a03d1375af7 /sway/commands/seat.c
parentinput/cursor: remove gesture listeners in destroy (diff)
downloadsway-b7f0656fab355f6dc83792794d9f1be780915d0b.tar.gz
sway-b7f0656fab355f6dc83792794d9f1be780915d0b.tar.zst
sway-b7f0656fab355f6dc83792794d9f1be780915d0b.zip
layer-shell: unfocus output-less layer on unmap
If a layer is focused by any seat, it needs to be unfocused on unmap. If the unmap was due to an output being disabled, there would not be a sway_output and unmap would do an early return. This results in a use-after-free if the layer was focused by any seat prior to being unmapped. This change just moves the refocusing code above the early returns.
Diffstat (limited to 'sway/commands/seat.c')
0 files changed, 0 insertions, 0 deletions