]> git.sur5r.net Git - i3/i3/commitdiff
Invert condition to log debug message in correct situation (#2896)
authorIngo Bürk <admin@airblader.de>
Tue, 5 Sep 2017 07:01:53 +0000 (09:01 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 5 Sep 2017 07:01:53 +0000 (09:01 +0200)
src/commands.c

index 393d70185e5a8e9e8d779c3ecee657d9fadba459..bbe7d2657b60e48b5ddaa3aeef56abf56873767a 100644 (file)
@@ -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.");
     }