diff --git a/screen.c b/screen.c index 7dc957d78..80abe5875 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 */