swayfx/sway/tree
Brian Ashworth 8fd3f32c79 Fix segfaults on output destruction
This fixes two causes of segfaulting when an output is destroyed.

The first occurred when an output was never enabled. The issue was that
the destroy signal was never initialized so when it was emitted, sway
segfaulted. This was fixed by moving the initialization into
`output_create` since all outputs, regardless of whether they have ever
been enabled, will be destroyed at some point.

The second occurred when the cursor was on an output that was being
destroyed. The sway output would have already been removed, but if there
are other outputs, a cursor rebase would still occur. Since the
wlr_output still existed and the sway output was destroyed, the cursor
could be over nothing, resulting in a segfault when trying to get the
sway output, which was destroyed.
2019-01-10 03:07:36 -05:00
..
arrange.c Fix crash when view maps while locked 2018-10-13 19:15:04 +10:00
container.c Set font options when computing text width. 2018-12-31 01:37:33 -05:00
node.c ipc: handle NULL cases for node_get_output 2018-09-15 09:42:49 +01:00
output.c Fix segfaults on output destruction 2019-01-10 03:07:36 -05:00
root.c Fix crash when scratchpad contains split containers 2018-12-29 14:45:42 +10:00
view.c seat: unhide the cursor if it is warped to focus 2019-01-07 10:30:19 -05:00
workspace.c Combine output_by_name and output_by_identifier 2018-12-20 19:55:29 +01:00