From 29bc1bc2f1982b4ba399fefc0689517ca0f73ac4 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 19 Jun 2009 03:08:44 +0200 Subject: [PATCH] Client: Add frame_update({c1, c2}) to draw the right title --- src/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 2465871..3b06473 100644 --- a/src/client.c +++ b/src/client.c @@ -671,7 +671,7 @@ client_size_hints(Client *c) void client_swap(Client *c1, Client *c2) { - /* Swap juste the window */ + /* Swap only the window */ swap_ptr((void**)&c1->win, (void**)&c2->win); swap_ptr((void**)&c1->title, (void**)&c2->title); @@ -693,6 +693,10 @@ client_swap(Client *c1, Client *c2) if(c1->screen != c2->screen) arrange(c2->screen); + /* Update frame to draw the right title */ + frame_update(c1); + frame_update(c2); + return; }