[client] Fix for 'invalidate' cache when swapping

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-03 11:59:56 +02:00
parent 5daa3c6478
commit 24d2e200af
1 changed files with 2 additions and 2 deletions

View File

@ -862,7 +862,7 @@ uicb_client_swapprev(int screen __attribute__ ((unused)), char *arg __attribute_
{
client_list_swap(&globalconf.clients, prev, globalconf.focus->client);
globalconf.screens[prev->screen].need_arrange = True;
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
widget_invalidate_cache(prev->screen, WIDGET_CACHE_CLIENTS);
}
}
@ -880,7 +880,7 @@ uicb_client_swapnext(int screen __attribute__ ((unused)), char *arg __attribute_
{
client_list_swap(&globalconf.clients, globalconf.focus->client, next);
globalconf.screens[next->screen].need_arrange = True;
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
widget_invalidate_cache(next->screen, WIDGET_CACHE_CLIENTS);
}
}