From 0ab012a401605329f082065a28d4e802a1c0e293 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 5 Sep 2008 02:08:48 +0200 Subject: [PATCH] screen: invalidate widget cache on move Signed-off-by: Julien Danjou --- screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/screen.c b/screen.c index 7dc957d7..80abe587 100644 --- a/screen.c +++ b/screen.c @@ -28,6 +28,7 @@ #include "tag.h" #include "client.h" #include "statusbar.h" +#include "widget.h" #include "layouts/tile.h" extern awesome_t globalconf; @@ -209,6 +210,9 @@ screen_client_moveto(client_t *c, int new_screen, bool dotag, bool doresize) c->screen = new_screen; + widget_invalidate_cache(old_screen, WIDGET_CACHE_CLIENTS); + widget_invalidate_cache(new_screen, WIDGET_CACHE_CLIENTS); + if(dotag && !c->issticky) { /* remove old tags */