Invert condition to log debug message in correct situation (#2896)
This commit is contained in:
parent
a5b5eef6c0
commit
85eb097677
|
@ -1854,7 +1854,7 @@ void cmd_swap(I3_CMD, const char *mode, const char *arg) {
|
|||
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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue