# XWayland support. 'auto' enables it when wlroots was built with
# XWayland *and* the xcb dependency is present, and silently disables it
# otherwise; 'enabled' makes a missing dependency a hard error; 'disabled'
# builds a pure-Wayland compositor with no X11 code compiled in (and no
# xcb / Xwayland runtime dependency).
option(
	'xwayland',
	type: 'feature',
	value: 'auto',
	description: 'Support legacy X11 clients via an embedded XWayland server',
)

# Clickable close button (a flat square in each toplevel's top-right
# corner). Pure wlr_scene_rect, no extra dependency.
option(
	'close-button',
	type: 'boolean',
	value: true,
	description: 'Draw a clickable close button on toplevels',
)

# fcft glyph rendering (the close button "×"). fcft is the fcft+pixman
# font lib used by foot/yambar — no cairo/pango. Default 'disabled' for
# now: the bare square needs no font stack, and richer rendering (this,
# and later cairo/GL effects) stays opt-in as the stack grows. Set
# 'enabled' on a base that ships fcft (e.g. the SliTaz chroot) to compile
# the glyph path.
option(
	'fcft',
	type: 'feature',
	value: 'disabled',
	description: 'Render glyphs with fcft (close-button x); needs fcft',
)

# cairo (image backend, software/pixman — no GL/mesa) for prettier chrome.
# First use: a rounded, anti-aliased close button drawn entirely by cairo
# (supersedes the fcft glyph path; cairo draws the × itself). Default
# 'disabled'; needs the cairo-wayland package (cairo built without GL).
option(
	'cairo',
	type: 'feature',
	value: 'disabled',
	description: 'Use cairo for chrome (rounded AA close button); needs cairo',
)
