mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
overview: fix workospaces > 5
This commit is contained in:
parent
405a370a94
commit
8540e71876
1 changed files with 3 additions and 3 deletions
|
|
@ -217,7 +217,7 @@ const Workspace = (index) => {
|
||||||
widget.set = (clientJson) => {
|
widget.set = (clientJson) => {
|
||||||
// if(clientMap.get(clientJson.address)) clientMap.get(clientJson.address).destroy();
|
// if(clientMap.get(clientJson.address)) clientMap.get(clientJson.address).destroy();
|
||||||
const newWindow = Window(clientJson);
|
const newWindow = Window(clientJson);
|
||||||
if(newWindow === null) return;
|
if (newWindow === null) return;
|
||||||
// clientMap.set(clientJson.address, newWindow);
|
// clientMap.set(clientJson.address, newWindow);
|
||||||
fixed.put(newWindow,
|
fixed.put(newWindow,
|
||||||
Math.max(0, clientJson.at[0] * OVERVIEW_SCALE),
|
Math.max(0, clientJson.at[0] * OVERVIEW_SCALE),
|
||||||
|
|
@ -256,7 +256,7 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
|
||||||
kids.forEach(kid => kid.clear());
|
kids.forEach(kid => kid.clear());
|
||||||
for (let i = 0; i < allClients.length; i++) {
|
for (let i = 0; i < allClients.length; i++) {
|
||||||
const client = allClients[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)]
|
kids[client.workspace.id - (offset + startWorkspace)]
|
||||||
.set(client);
|
.set(client);
|
||||||
}
|
}
|
||||||
|
|
@ -299,7 +299,7 @@ export default () => Widget.Revealer({
|
||||||
children: Array.from({ length: NUM_OF_WORKSPACE_ROWS }, (_, index) =>
|
children: Array.from({ length: NUM_OF_WORKSPACE_ROWS }, (_, index) =>
|
||||||
OverviewRow({
|
OverviewRow({
|
||||||
startWorkspace: 1 + index * NUM_OF_WORKSPACE_COLS,
|
startWorkspace: 1 + index * NUM_OF_WORKSPACE_COLS,
|
||||||
workspaces: NUM_OF_WORKSPACE_COLS
|
workspaces: NUM_OF_WORKSPACE_COLS,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue