Invert condition to log debug message in correct situation (#2896)
This commit is contained in:
parent
09ee12d8e5
commit
dedfda1e01
|
@ -1854,7 +1854,7 @@ void cmd_swap(I3_CMD, const char *mode, const char *arg) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match == TAILQ_LAST(&owindows, owindows_head)) {
|
if (match != TAILQ_LAST(&owindows, owindows_head)) {
|
||||||
DLOG("More than one container matched the swap command, only using the first one.");
|
DLOG("More than one container matched the swap command, only using the first one.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue