Merge pull request #1595 from Deiz/fix-1484

Fix percents when attaching a window to a ws creates a new split con
This commit is contained in:
Michael Stapelberg
2015-03-29 23:14:37 +02:00
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;
}