29 Feb
2024
29 Feb
'24
4:01 p.m.
Alexandros Frantzis (@afrantzis) commented about dlls/winewayland.drv/wayland_surface.c:
if (damage) NtGdiDeleteObjectApp(damage); } + +/********************************************************************** + * wayland_surface_set_title + */ +void wayland_surface_set_title(struct wayland_surface *surface, LPCWSTR text) +{ + DWORD text_len; + DWORD utf8_count; + char *utf8 = NULL; + + if (!surface->xdg_toplevel)
Let's change this to `assert(surface->xdg_toplevel)`, i.e., make it a precondition that this function should only be called on a toplevel surfaces, since that's the only kind for which a title is relevant. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5178#note_63085