Signed-off-by: Jacek Caban jacek@codeweavers.com --- Tests show that orphaned windows' parents handles are no longer valid, but a number of operations of children still need to work, even things like MoveWindow(). For that to work, we still need to have parent object around. Following patches will use that for ref-counting, while having full server object is nice for things like leak detection.
We could avoid making window object ref-counted by detecting if we're the last child alive when freeing its handle (and then destroying parent), but that doesn't seem cleaner.
server/user.h | 2 +- server/window.c | 106 +++++++++++++++++++++++++++++++++----------- server/winstation.c | 4 +- 3 files changed, 83 insertions(+), 29 deletions(-)