]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
Refactor workspaces to be stored in a TAILQ instead of an array
[i3/i3] / src / manage.c
index 5dcb837c1144538f2abf3ad64bc45c85256b9ff0..d45001341511f9987069d9b30211460421528fa2 100644 (file)
@@ -329,7 +329,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
                         LOG("Assignment \"%s\" matches, so putting it on workspace %d\n",
                             assign->windowclass_title, assign->workspace);
 
-                        if (c_ws->screen->current_workspace == (assign->workspace-1)) {
+                        if (c_ws->screen->current_workspace->num == (assign->workspace-1)) {
                                 LOG("We are already there, no need to do anything\n");
                                 break;
                         }