swayfx/sway
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
..
commands Reset container dimensions when moving into workspace from direction 2019-01-09 11:22:23 -05:00
config swaybar: implement tray config 2018-12-31 20:40:18 +00:00
desktop Use %z for printing size_t 2019-01-06 12:20:59 +00:00
input Fix segfaults on output destruction 2019-01-10 03:07:36 -05:00
tree Fix segfaults on output destruction 2019-01-10 03:07:36 -05:00
commands.c Merge pull request #3275 from ianyfan/remove-readline 2019-01-08 10:05:37 +01:00
config.c Simplify evdev includes on FreeBSD by relying on up-to-date package 2019-01-09 11:02:05 +00:00
criteria.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c swaybar: implement tray config 2018-12-31 20:40:18 +00:00
ipc-server.c Simplify evdev includes on FreeBSD by relying on up-to-date package 2019-01-09 11:02:05 +00:00
main.c Remove readline.c 2019-01-01 09:01:25 +00:00
meson.build Implement tiling_drag_threshold 2019-01-02 23:33:33 +01:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add data-control-v1 2019-01-07 17:01:53 -05:00
sway-bar.5.scd swaybar: implement tray config 2018-12-31 20:40:18 +00:00
sway-input.5.scd hide_cursor: change to a seat subcommand 2018-12-30 14:17:24 +01:00
sway-output.5.scd Fixed formulations. 2019-01-04 12:44:03 +01:00
sway.1.scd Undocument SWAY_CURSOR_THEME and SWAY_CURSOR_SIZE 2018-12-31 01:42:33 +01:00
sway.5.scd Fix urgency documentation 2019-01-05 23:34:04 -05:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00