[PATCH weston 3/3] clients: don't crash weston-desktop-shell without the clock
Pekka Paalanen
ppaalanen at gmail.com
Tue Jun 12 07:42:26 PDT 2012
Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
clients/desktop-shell.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 9a1b502..5a81b2c 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -419,7 +419,10 @@ panel_resize_handler(struct widget *widget,
}
h=20;
w=170;
- widget_set_allocation(panel->clock->widget, width - w - 8, y - h / 2, w + 1, h + 1);
+
+ if (panel->clock)
+ widget_set_allocation(panel->clock->widget,
+ width - w - 8, y - h / 2, w + 1, h + 1);
}
static void
--
1.7.3.4
More information about the wayland-devel
mailing list