bug-hunting (intermediate commit)

Signed-off-by: nuss <st9fan@gmail.com>
working on the resize-behavior of detached windows

Signed-off-by: nuss <st9fan@gmail.com>