diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 9a1b502f..5a81b2ca 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