From 4ab946886589824e4821f9537c5a0815b09b9f19 Mon Sep 17 00:00:00 2001 From: Juan Zhao Date: Mon, 9 Jul 2012 22:24:09 -0700 Subject: [PATCH] shell: Use the correct the member name when iterating panel_list It does not get the correct panel height for now. The memeber of list to read should be layer_link not link now. Signed-off-by: Juan Zhao --- src/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 2cc0139..66c9d64 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1331,7 +1331,7 @@ get_output_panel_height(struct desktop_shell *shell, if (!output) return 0; - wl_list_for_each(surface, &shell->panel_layer.surface_list, link) { + wl_list_for_each(surface, &shell->panel_layer.surface_list, layer_link) { if (surface->output == output) { panel_height = surface->geometry.height; break; -- 2.7.4