Skip to content

Commit

Permalink
Fix: missing ws->sel on unfocused workspaces after restarting dk
Browse files Browse the repository at this point in the history
  • Loading branch information
natemaia committed Apr 5, 2024
1 parent e7de0f2 commit 7d0ba84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dk.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,9 @@ static int savestate(int restore)
t->x = c.x, t->y = c.y, t->w = c.w, t->h = c.h; t->bw = c.bw;
}
}
for (ws = workspaces; ws; ws = ws->next) {
ws->sel = !ws->sel && ws->stack ? ws->stack : NULL;
}
} else {
/* dump client data as binary */
win = selws->sel ? selws->sel->win : XCB_WINDOW_NONE;
Expand Down

0 comments on commit 7d0ba84

Please sign in to comment.