add tag bitset check from dwm

このコミットが含まれているのは:
Devin J. Pohly 2020-07-31 09:57:59 -05:00
コミット 50aa44c59b
1個のファイルの変更3行の追加0行の削除

3
dwl.c
ファイルの表示

@ -274,6 +274,9 @@ static struct wl_listener xwayland_ready = {.notify = xwaylandready};
/* configuration, allows nested code to access above variables */
#include "config.h"
/* compile-time check if all tags fit into an unsigned int bit array. */
struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
/* function implementations */
void
activatex11(struct wl_listener *listener, void *data)