mirror of https://github.com/yshui/picom.git
picom: address some clang-tidy issues
This commit is contained in:
parent
ae3c77b1a5
commit
34024092d7
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue