]> git.sur5r.net Git - i3/i3/commitdiff
Free A_TO_WORKSPACE_NUMBER assignments
authorOrestis Floros <orestisf1993@gmail.com>
Sun, 25 Mar 2018 17:35:53 +0000 (20:35 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sun, 25 Mar 2018 17:35:53 +0000 (20:35 +0300)
src/config.c

index fd379fdea475d234a47932b5f234b9116d144c9a..95b7ec9801f424e91402482589fc70e2d6efacbb 100644 (file)
@@ -99,7 +99,7 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
         struct Assignment *assign;
         while (!TAILQ_EMPTY(&assignments)) {
             assign = TAILQ_FIRST(&assignments);
-            if (assign->type == A_TO_WORKSPACE)
+            if (assign->type == A_TO_WORKSPACE || assign->type == A_TO_WORKSPACE_NUMBER)
                 FREE(assign->dest.workspace);
             else if (assign->type == A_COMMAND)
                 FREE(assign->dest.command);