diff --git a/src/picom.c b/src/picom.c index 1567ab8..bf18523 100644 --- a/src/picom.c +++ b/src/picom.c @@ -501,8 +501,9 @@ static void rebuild_screen_reg(session_t *ps) { */ static void rebuild_shadow_exclude_reg(session_t *ps) { bool ret = parse_geometry(ps, ps->o.shadow_exclude_reg_str, &ps->shadow_exclude_reg); - if (!ret) + if (!ret) { exit(1); + } } /// Free up all the images and deinit the backend diff --git a/src/picom.h b/src/picom.h index e68b1e0..d42ae04 100644 --- a/src/picom.h +++ b/src/picom.h @@ -60,9 +60,11 @@ uint8_t session_redirection_mode(session_t *ps); static inline void wintype_arr_enable_unset(switch_t arr[]) { wintype_t i; - for (i = 0; i < NUM_WINTYPES; ++i) - if (UNSET == arr[i]) + for (i = 0; i < NUM_WINTYPES; ++i) { + if (UNSET == arr[i]) { arr[i] = ON; + } + } } /**