Use the combined geometry of children when setting a split container to floating (+testcase) (Thanks mseed)

Fixes #332
This commit is contained in:
Michael Stapelberg
2011-03-06 02:38:21 +01:00
parent 88ab66e742
commit 4514146ed9
3 changed files with 83 additions and 2 deletions

View File

@ -149,8 +149,7 @@ void x_move_win(Con *src, Con *dest) {
return;
}
Rect zero;
memset(&zero, 0, sizeof(Rect));
Rect zero = { 0, 0, 0, 0 };
if (memcmp(&(state_dest->window_rect), &(zero), sizeof(Rect)) == 0) {
memcpy(&(state_dest->window_rect), &(state_src->window_rect), sizeof(Rect));
DLOG("COPYING RECT\n");