From 5ccc31f7ec609a44dfb81c5f7ff43569572867a6 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 18 Apr 2010 19:02:13 +0200 Subject: [PATCH] Tag: Fix tag_swap() with clients --- src/tag.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tag.c b/src/tag.c index 9c3629f..2b5e557 100644 --- a/src/tag.c +++ b/src/tag.c @@ -304,6 +304,7 @@ uicb_tag_toggle_additional(uicb_t cmd) void tag_swap(int s, int t1, int t2) { + Client *c; Tag t; int i, j; @@ -315,6 +316,10 @@ tag_swap(int s, int t1, int t2) tags[s][t1] = tags[s][t2]; tags[s][t2] = t; + for(c = clients; c; c = c->next) + if(c->screen == s && c->tag == t1) + c->tag = t2; + /* Adapt tags buttons */ for(i = 1, j = 0; i < conf.ntag[s] + 1; ++i) {