From 7d28309a47ccee8fb09d863e606b11d794296bb4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 7 Jul 2019 19:55:34 +0100 Subject: [PATCH] Stop debug mode from being used without the new backends Signed-off-by: Yuxuan Shui --- src/compton.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compton.c b/src/compton.c index 5f4f957..14d50cc 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1712,6 +1712,11 @@ static session_t *session_init(int argc, char **argv, Display *dpy, } } + if (ps->o.debug_mode && !ps->o.experimental_backends) { + log_fatal("Debug mode only works with the experimental backends."); + return NULL; + } + ps->atoms = init_atoms(ps->c); ps->atoms_wintypes[WINTYPE_UNKNOWN] = 0; #define SET_WM_TYPE_ATOM(x) \