On Mon Feb 27 14:35:25 2023 +0000, Jacek Caban wrote:
The usual practice in Wine is to have fewer source files rather than more. I'd suggest merging waylanddrv_main.c and wayland_mutex.c into wayland.c or something along those lines.
I have merged wayland_mutex.c into wayland.c and generally reworked the driver series to reduce the number of sources files, where I think it made the most sense. I am happy to discuss more in each MR.
Concerning waylanddrv_main.c vs wayland.c, I have kept them separate since I find they have different directions:
1. waylanddrv_main.c: Externals interactions with Windows/Wine: unixlib init, user funcs init, registry, options etc (i.e., in line with what x11drv_main.c does) 2. wayland.c: Internal core Wayland related functionality, mostly around `struct wayland`.
Let me know if this seems OK.