Address @emersion's review comments

This commit is contained in:
Drew DeVault 2018-07-24 14:31:38 -04:00
parent f4b882475e
commit c80258c3b3

View file

@ -592,6 +592,8 @@ found:
static void pw_handle_output_destroy(struct wl_listener *listener, void *data) { static void pw_handle_output_destroy(struct wl_listener *listener, void *data) {
struct pid_workspace *pw = wl_container_of(listener, pw, output_destroy); struct pid_workspace *pw = wl_container_of(listener, pw, output_destroy);
pw->output = NULL; pw->output = NULL;
wl_list_remove(&pw->output_destroy.link);
wl_list_init(&pw->output_destroy.link);
} }
void workspace_record_pid(pid_t pid) { void workspace_record_pid(pid_t pid) {