[client] wayland: implement libdecor pseudo-shell backend

This allows decorations to be drawn on GNOME and other crazy compositors
that do not support server-side decorations.
This commit is contained in:
Quantum
2021-03-06 07:09:44 -05:00
committed by Geoffrey McRae
parent 82e107af8a
commit d6a290a31d
4 changed files with 138 additions and 0 deletions

View File

@@ -96,11 +96,16 @@ struct WaylandDSState
EGLSurface glSurface;
#endif
#ifdef ENABLE_LIBDECOR
struct libdecor * libdecor;
struct libdecor_frame * libdecorFrame;
#else
struct xdg_wm_base * xdgWmBase;
struct xdg_surface * xdgSurface;
struct xdg_toplevel * xdgToplevel;
struct zxdg_decoration_manager_v1 * xdgDecorationManager;
struct zxdg_toplevel_decoration_v1 * xdgToplevelDecoration;
#endif
struct wl_surface * cursor;