]> git.sur5r.net Git - i3/i3/blobdiff - src/match.c
do not match docks in config and command criteria (#2340)
[i3/i3] / src / match.c
index d072b85fabada5d5268af7d8a9dfb178edee8acd..ba87eb236fb8fe737255b54391eb394f1268e801 100644 (file)
@@ -27,7 +27,6 @@
  */
 void match_init(Match *match) {
     memset(match, 0, sizeof(Match));
-    match->dock = M_DONTCHECK;
     match->urgent = U_DONTCHECK;
     /* we use this as the placeholder value for "not set". */
     match->window_type = UINT32_MAX;
@@ -53,7 +52,7 @@ bool match_is_empty(Match *match) {
             match->id == XCB_NONE &&
             match->window_type == UINT32_MAX &&
             match->con_id == NULL &&
-            match->dock == -1 &&
+            match->dock == M_NODOCK &&
             match->floating == M_ANY);
 }