summaryrefslogtreecommitdiff
path: root/libdecor/build/fl_libdecor.c
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-01 14:43:32 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-02 09:28:08 +0100
commitf72748bb4563c07322846ae92cc9c02c0b448e5b (patch)
treef1810fa604d181fc018249eb3fd0a0742650548d /libdecor/build/fl_libdecor.c
parent96730f80cbc3b2d5aec2967a61f16bb2f02853e6 (diff)
Wayland: make OPTION_USE_SYSTEM_LIBDECOR ON by default
This commit makes the default FLTK build setting use libdecor as packaged in Linux when the build system contains packages libdecor-0-dev and libdecor-0-plugin-1-gtk in version ≥ 0.2.0. Otherwise, FLTK uses the bundled version of libdecor. This includes situations where package libdecor-0-dev is present in an earlier version.
Diffstat (limited to 'libdecor/build/fl_libdecor.c')
-rw-r--r--libdecor/build/fl_libdecor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdecor/build/fl_libdecor.c b/libdecor/build/fl_libdecor.c
index ab6cee5c2..7a327f151 100644
--- a/libdecor/build/fl_libdecor.c
+++ b/libdecor/build/fl_libdecor.c
@@ -15,6 +15,7 @@
//
/* Improvements to libdecor.c without modifying libdecor.c itself */
+#if ! USE_SYSTEM_LIBDECOR
#include "xdg-shell-client-protocol.h"
#ifdef XDG_TOPLEVEL_STATE_SUSPENDED_SINCE_VERSION
@@ -126,3 +127,5 @@ LIBDECOR_EXPORT struct libdecor *libdecor_new(struct wl_display *wl_display, str
wl_display_flush(wl_display);
return context;
}
+
+#endif //! USE_SYSTEM_LIBDECOR