Fix: delete decoration cache after swap

Fixes a regression after 8e1687a where swapping 2 containers across
different workspaces would not update their titles.
This commit is contained in:
Orestis Floros 2019-05-25 00:05:18 +03:00
parent f2c7e26a0c
commit 573574b301
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 2 additions and 0 deletions

View File

@ -2385,6 +2385,8 @@ bool con_swap(Con *first, Con *second) {
con_fix_percent(first->parent); con_fix_percent(first->parent);
con_fix_percent(second->parent); con_fix_percent(second->parent);
FREE(first->deco_render_params);
FREE(second->deco_render_params);
con_force_split_parents_redraw(first); con_force_split_parents_redraw(first);
con_force_split_parents_redraw(second); con_force_split_parents_redraw(second);