From 85eb09767704479297a4de5aff9c40690a0d89a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Tue, 5 Sep 2017 09:01:53 +0200 Subject: [PATCH] Invert condition to log debug message in correct situation (#2896) --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); } -- 2.39.5