clang-format: bring back ForeachMacros (#3948)
* clang-format: bring back ForeachMacros
ForeachMacros was disabled in 4211274fcd
due to the breakage of include/queue.h. The currently used version,
clang-format-6.0 doesn't break it.
* Add curly braces
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
This commit is contained in:
@ -139,7 +139,7 @@ bool match_matches_window(Match *match, i3Window *window) {
|
||||
return false;
|
||||
}
|
||||
/* if we find a window that is newer than this one, bail */
|
||||
TAILQ_FOREACH(con, &all_cons, all_cons) {
|
||||
TAILQ_FOREACH (con, &all_cons, all_cons) {
|
||||
if ((con->window != NULL) &&
|
||||
_i3_timercmp(con->window->urgent, window->urgent, >)) {
|
||||
return false;
|
||||
@ -154,7 +154,7 @@ bool match_matches_window(Match *match, i3Window *window) {
|
||||
return false;
|
||||
}
|
||||
/* if we find a window that is older than this one (and not 0), bail */
|
||||
TAILQ_FOREACH(con, &all_cons, all_cons) {
|
||||
TAILQ_FOREACH (con, &all_cons, all_cons) {
|
||||
if ((con->window != NULL) &&
|
||||
(con->window->urgent.tv_sec != 0) &&
|
||||
_i3_timercmp(con->window->urgent, window->urgent, <)) {
|
||||
@ -201,7 +201,7 @@ bool match_matches_window(Match *match, i3Window *window) {
|
||||
|
||||
bool matched = false;
|
||||
mark_t *mark;
|
||||
TAILQ_FOREACH(mark, &(con->marks_head), marks) {
|
||||
TAILQ_FOREACH (mark, &(con->marks_head), marks) {
|
||||
if (regex_matches(match->mark, mark->name)) {
|
||||
matched = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user