custom layout is now non-optional to fix bug

This commit is contained in:
speedie 2022-11-30 18:22:55 +01:00
parent dfdff88bf1
commit f7f9b341a2
5 changed files with 1 additions and 13 deletions

View file

@ -885,7 +885,6 @@ hgrid(Monitor *m) {
}
}
#if LAYOUT_CUSTOM
enum node_type_t
{
ndNULL,
@ -1682,4 +1681,3 @@ set_s_layout(const Arg *arg)
token_root = token;
}
}
#endif

View file

@ -18,10 +18,8 @@ static Signal signals[] = {
{ 11, setlayout, {.v = &layouts[10]} }, /* Horizontal Bottom Stack layout */
{ 12, setlayout, {.v = &layouts[11]} }, /* Horizontal Grid layout */
{ 13, setlayout, {.v = &layouts[12]} }, /* Dynamic Grid layout */
#if LAYOUT_CUSTOM
{ 14, setlayout, {.v = &layouts[13]} }, /* Custom layout */
{ 15, set_s_layout, {.v = &layouts[13]} },
#endif
{ 16, cyclelayout, {.i = +1 } },
{ 17, cyclelayout, {.i = -1 } },
{ 18, setmfact, {.f = +0.05} },

View file

@ -641,10 +641,8 @@ static void tile(Monitor *m);
static void empty(Monitor *m);
static void hgrid(Monitor *m);
static void ngrid(Monitor *m);
#if LAYOUT_CUSTOM
static void custom(Monitor *m);
static void set_s_layout(const Arg *arg);
#endif
/* bar items */
static void togglebar(const Arg *arg);

3
text.h
View file

@ -53,9 +53,8 @@ static Layout layouts[] = {
/* Dynamic Grid */
{ text_layout13, tile, { -1, -1, nosplit, dynamicgrid, dynamicgrid, 0, NULL } },
/* Custom */
#if LAYOUT_CUSTOM
{ text_layout14, custom, {0} },
#endif
/* Empty */
{ text_layout15, empty, {0} },
/* Reset to layout 1 */
{ NULL, NULL, {0} },

View file

@ -34,8 +34,3 @@ Not compatible with BSDs so for those, set this to 0. */
#define USEIMLIB2 1 /* Whether or not to include imlib2. Required by USEWINICON and USETAGPREVIEW. */
#define USEWINICON 1 /* Whether or not to include window icons. Requires imlib to be enabled in toggle.mk and it must be installed. */
#define USETAGPREVIEW 1 /* Whether or not to include tag previews. Requires imlib to be enabled in toggle.mk and it must be installed. */
/* Layouts
* If you don't use a layout, you can remove it to keep the speedwm binary small.
*/
#define LAYOUT_CUSTOM 1 /* Whether or not to include the custom layout */