From: Ingo Bürk Date: Tue, 5 Sep 2017 07:01:53 +0000 (+0200) Subject: Invert condition to log debug message in correct situation (#2896) X-Git-Tag: 4.15~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85eb09767704479297a4de5aff9c40690a0d89a8;p=i3%2Fi3 Invert condition to log debug message in correct situation (#2896) --- diff --git a/src/commands.c b/src/commands.c index 393d7018..bbe7d265 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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."); }