From 24d2e200af0bce01339b50ce2aa0dfae7e7650e6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 3 May 2008 11:59:56 +0200 Subject: [PATCH] [client] Fix for 'invalidate' cache when swapping Signed-off-by: Julien Danjou --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 72b602d2..527466b1 100644 --- a/client.c +++ b/client.c @@ -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); } }