---
name: "waffle_wayland_config"
section: "3"
platform: "linux"
package: "libwaffle-doc"
version: "1.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/waffle_wayland"
---

# waffle\_wayland\_config(3)

Containers for underlying native Wayland objects

Part of [waffle\_wayland(3)](/waffle_wayland/3.md).

## NAME

waffle\_wayland, waffle\_wayland\_display, waffle\_wayland\_config, waffle\_wayland\_context, waffle\_wayland\_window - Containers for underlying native Wayland objects

## SYNOPSIS

```
#include <waffle_wayland.h>
struct waffle_wayland_display {
    struct wl_display *wl_display;
    struct wl_compositor *wl_compositor;
    // DEPRECATED: wl_shell will be NULL when compositor does not support the
    // old wl_shell protocol
    struct wl_shell *wl_shell;
    EGLDisplay egl_display;
    // xdg_shell introduced with 1.7. Will be NULL when compositor does not
    // support the new xdg-shell protocol
    struct xdg_wm_base *xdg_shell;
};
struct waffle_wayland_config {
    struct waffle_wayland_display display;
    EGLConfig egl_config;
};
struct waffle_wayland_context {
    struct waffle_wayland_display display;
    EGLContext egl_context;
};
struct waffle_wayland_window {
    struct waffle_wayland_display display;
    struct wl_surface *wl_surface;
    // DEPRECATED: wl_shell_surface will be NULL when compositor does not
    // support the old wl_shell protocol
    struct wl_shell_surface *wl_shell_surface;
    struct wl_egl_window *wl_window;
    EGLSurface egl_surface;
    // xdg_surface and xdg_toplevel introduced with 1.7. Will be NULL when
    // compositor does not support the new xdg-shell protocol
    struct xdg_surface *xdg_surface;
    struct xdg_toplevel *xdg_toplevel;
};
```

## ISSUES

Please report bugs or and feature requests to **https://gitlab.freedesktop.org/mesa/waffle/issues**.

## SEE ALSO

[**waffle**(7)](/waffle/7.md), [**waffle\_native**(3)](/waffle_native/3.md)

## AUTHOR

**Chad Versace** \<chad.versace@linux.intel.com\>

Former maintainer

## COPYRIGHT

Copyright © 2013 Intel\

This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To view a copy of this license, visit **http://creativecommons.org.license/by-sa/3.0/us**.
