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.14.1~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dedfda1e016aabb4f7416def99baba5bb8c3ef85;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."); }