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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user