From 10f8493ffaf6449a571b80d1aba0a4932829c7b8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 11 Jan 2008 15:53:57 +0100 Subject: [PATCH] fix widget invalidation --- widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget.c b/widget.c index 7858eff5..1a7226d7 100644 --- a/widget.c +++ b/widget.c @@ -132,7 +132,8 @@ widget_invalidate_cache(int screen, int flags) statusbar; statusbar = statusbar->next) for(widget = statusbar->widgets; widget; widget = widget->next) - widget->cache.needs_update = (widget->cache.flags & flags); + if(widget->cache.flags & flags) + widget->cache.needs_update = True; } /** Send command to widget