Stop debug mode from being used without the new backends

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-07-07 19:55:34 +01:00
parent 722b01ca6a
commit 7d28309a47
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 5 additions and 0 deletions

View File

@ -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 = init_atoms(ps->c);
ps->atoms_wintypes[WINTYPE_UNKNOWN] = 0; ps->atoms_wintypes[WINTYPE_UNKNOWN] = 0;
#define SET_WM_TYPE_ATOM(x) \ #define SET_WM_TYPE_ATOM(x) \