summaryrefslogtreecommitdiff
path: root/desktop-shell
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-01-16 13:22:15 +0000
committerDaniel Stone <daniels@collabora.com>2017-01-16 15:13:39 +0000
commit8de91494b32203d079b5b0298ef38b56ef19c2a2 (patch)
tree0078eb74111210e21977227661d795b1caaf24a3 /desktop-shell
parent9cbe1c6ae09f187db76a5c89c78856395c9e321e (diff)
desktop-shell: Initialise panel surface listener
The desktop-shell output destroy code assumes that we always set up a panel listener. Initialise its list explicitly, so if we don't have a panel, then we can still unconditionally destroy the listener on output destroy. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'desktop-shell')
-rw-r--r--desktop-shell/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 8388dc3b..ce4b8704 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -4667,6 +4667,7 @@ create_shell_output(struct desktop_shell *shell,
shell_output->output = output;
shell_output->shell = shell;
shell_output->destroy_listener.notify = handle_output_destroy;
+ wl_list_init(&shell_output->panel_surface_listener.link);
wl_signal_add(&output->destroy_signal,
&shell_output->destroy_listener);
wl_list_insert(shell->output_list.prev, &shell_output->link);