Client: Add frame_update({c1, c2}) to draw the right title
This commit is contained in:
@@ -671,7 +671,7 @@ client_size_hints(Client *c)
|
|||||||
void
|
void
|
||||||
client_swap(Client *c1, Client *c2)
|
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->win, (void**)&c2->win);
|
||||||
swap_ptr((void**)&c1->title, (void**)&c2->title);
|
swap_ptr((void**)&c1->title, (void**)&c2->title);
|
||||||
|
|
||||||
@@ -693,6 +693,10 @@ client_swap(Client *c1, Client *c2)
|
|||||||
if(c1->screen != c2->screen)
|
if(c1->screen != c2->screen)
|
||||||
arrange(c2->screen);
|
arrange(c2->screen);
|
||||||
|
|
||||||
|
/* Update frame to draw the right title */
|
||||||
|
frame_update(c1);
|
||||||
|
frame_update(c2);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user