23 May
2023
23 May
'23
6:18 a.m.
Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_output.c:
if (current) state->current_mode = mode; }
-static void handle_init_display_devices(void) +static inline LRESULT send_message(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - wayland_init_display_devices(TRUE); - wayland_resize_desktop(); + return NtUserMessageCall(hwnd, msg, wparam, lparam, NULL, NtUserSendDriverMessage, + FALSE); }
To avoid having to move them later I'd suggest to add these helper to `waylanddrv.h` (though if you use NtUserPostMessage you won't need them yet). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2712#note_33519