]> git.sur5r.net Git - i3/i3/blobdiff - src/commands.c
Invert condition to log debug message in correct situation (#2896)
[i3/i3] / 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.");
     }