[PATCH 2/8] server: Make window struct a server object.
Jacek Caban
jacek at codeweavers.com
Tue Feb 8 05:31:33 CST 2022
Signed-off-by: Jacek Caban <jacek at 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(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-server-Make-window-struct-a-server-object.txt
Type: text/x-patch
Size: 8967 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220208/de5cd4f3/attachment.bin>
More information about the wine-devel
mailing list