mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Initialize output.item_refs before use
This commit is contained in:
parent
339149807f
commit
e4ee49a3d8
1 changed files with 3 additions and 0 deletions
|
|
@ -223,6 +223,9 @@ static void handle_global(void *data, struct wl_registry *registry,
|
|||
output->output = wl_registry_bind(registry, name,
|
||||
&wl_output_interface, 1);
|
||||
output->index = index++;
|
||||
#ifdef ENABLE_TRAY
|
||||
wl_list_init(&output->item_refs);
|
||||
#endif
|
||||
wl_list_init(&output->workspaces);
|
||||
wl_list_init(&output->hotspots);
|
||||
wl_list_insert(&bar->outputs, &output->link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue