overview: fix workospaces > 5

This commit is contained in:
end-4
2024-01-29 16:13:38 +07:00
parent 405a370a94
commit 8540e71876
@@ -256,7 +256,7 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
kids.forEach(kid => kid.clear());
for (let i = 0; i < allClients.length; i++) {
const client = allClients[i];
if (offset + startWorkspace <= client.workspace.id && client.workspace.id <= offset + workspaces) {
if (offset + startWorkspace <= client.workspace.id && client.workspace.id <= offset + startWorkspace + workspaces) {
kids[client.workspace.id - (offset + startWorkspace)]
.set(client);
}
@@ -299,7 +299,7 @@ export default () => Widget.Revealer({
children: Array.from({ length: NUM_OF_WORKSPACE_ROWS }, (_, index) =>
OverviewRow({
startWorkspace: 1 + index * NUM_OF_WORKSPACE_COLS,
workspaces: NUM_OF_WORKSPACE_COLS
workspaces: NUM_OF_WORKSPACE_COLS,
})
)
}),