Fix percents when attaching a window to a ws creates a new split con

Fixes #1484 and includes a test case.
This commit is contained in:
Deiz
2015-03-27 22:20:28 -04:00
parent 856e1f9772
commit 48d2acd8f6
2 changed files with 47 additions and 0 deletions

View File

@ -846,6 +846,9 @@ Con *workspace_attach_to(Con *ws) {
DLOG("Attaching new split %p to workspace %p\n", new, ws);
con_attach(new, ws, false);
/* 5: fix the percentages */
con_fix_percent(ws);
return new;
}