diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-27 11:31:07 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-27 11:33:52 +0100 |
commit | bec94cc04014d8dcb317dc357bd64017573f63ef (patch) | |
tree | 7cc1fd55d037be4d893214390154e184a209b1b4 /examples/gamma-control.c | |
parent | 8acaabcbab4f08dfae79dbfd9a1b2b5d932137c6 (diff) |
backend: move #ifdefs to nested functions
Instead of littering #ifdefs everywhere, move them to the dedicated
attempt_XXX_backend() functions. This makes the logic in
wlr_backend_autocreate() more readable, and provides better error
messages when the X11/Wayland backends are disabled at compile-time,
or when WLR_BACKENDS contains a backend disabled at compile-time.
Diffstat (limited to 'examples/gamma-control.c')
0 files changed, 0 insertions, 0 deletions