fix XWayland-only build: provide unconditional stub for get_window_image_from_x11 in wl_window.c so it links without the X11 backend

This commit is contained in:
Window Maker 2026-06-05 19:40:46 +02:00
parent e98dd1f6f0
commit b546e9505d
1 changed files with 4 additions and 5 deletions

View File

@ -26,11 +26,10 @@ struct wl_frame_buf *frame_buf_find(WNativeWindow id);
extern void *W_RegisterBacking(unsigned long id, void *img);
extern void W_UnregisterBacking(unsigned long id);
struct wl_toplevel_view *wl_find_view_by_id(WNativeWindow id);
#ifdef USE_XWAYLAND
pixman_image_t *get_window_image_from_x11(Display *x_display, WNativeWindow win);
#else
pixman_image_t *get_window_image_from_x11(Display *x_display, WNativeWindow win) { (void)x_display; (void)win; return NULL; }
#endif
pixman_image_t *get_window_image_from_x11(Display *x_display, WNativeWindow win)
{
(void)x_display; (void)win; return NULL;
}
Bool