diff --git a/widgets/graph.c b/widgets/graph.c index 675239ba..672a97de 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -153,6 +153,7 @@ graph_geometry(widget_t *widget, screen_t *screen, int height, int width) area_t geometry; graph_data_t *d = widget->data; + geometry.x = geometry.y = 0; geometry.height = height; geometry.width = d->width; diff --git a/widgets/imagebox.c b/widgets/imagebox.c index de8b5f06..a9598fd9 100644 --- a/widgets/imagebox.c +++ b/widgets/imagebox.c @@ -69,6 +69,8 @@ imagebox_geometry(widget_t *widget, screen_t *screen, int height, int width) geometry.height = 0; } + geometry.x = geometry.y = 0; + return geometry; } diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 940c0581..8d1de1d5 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -158,6 +158,8 @@ progressbar_geometry(widget_t *widget, screen_t *screen, int height, int width) geometry.width = pb_width + 2 * (d->border_width + d->border_padding); } + geometry.x = geometry.y = 0; + return geometry; } diff --git a/widgets/systray.c b/widgets/systray.c index 2c277f73..16cb7fd2 100644 --- a/widgets/systray.c +++ b/widgets/systray.c @@ -45,6 +45,8 @@ systray_geometry(widget_t *widget, screen_t *screen, int height, int width) /** \todo use class hints */ geometry.width = MIN(n * height, width); + geometry.x = geometry.y = 0; + return geometry; } diff --git a/widgets/textbox.c b/widgets/textbox.c index 6848108c..ed508a88 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -72,6 +72,8 @@ textbox_geometry(widget_t *widget, screen_t *screen, int height, int width) else geometry.width = MIN(d->extents.width + d->margin.left + d->margin.right, width); + geometry.x = geometry.y = 0; + return geometry; }