Signed-off-by: Pekka Paalanen <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to