forked from Shinonome/dots-hyprland
overview: remove debug print
This commit is contained in:
@@ -272,7 +272,6 @@ export default () => {
|
|||||||
fixed.attribute.put(WorkspaceNumber(offset + index), 0, 0);
|
fixed.attribute.put(WorkspaceNumber(offset + index), 0, 0);
|
||||||
widget.clear = () => {
|
widget.clear = () => {
|
||||||
const offset = Math.floor((Hyprland.active.workspace.id - 1) / NUM_OF_WORKSPACES_SHOWN) * NUM_OF_WORKSPACES_SHOWN;
|
const offset = Math.floor((Hyprland.active.workspace.id - 1) / NUM_OF_WORKSPACES_SHOWN) * NUM_OF_WORKSPACES_SHOWN;
|
||||||
console.log('clearing ws with id', index, ' | shown:', offset + index)
|
|
||||||
clientMap.forEach((client, address) => {
|
clientMap.forEach((client, address) => {
|
||||||
if (!client) return;
|
if (!client) return;
|
||||||
if ((client.attribute.ws <= offset || client.attribute.ws > offset + NUM_OF_WORKSPACES_SHOWN) ||
|
if ((client.attribute.ws <= offset || client.attribute.ws > offset + NUM_OF_WORKSPACES_SHOWN) ||
|
||||||
@@ -352,7 +351,6 @@ export default () => {
|
|||||||
const allClients = JSON.parse(clients);
|
const allClients = JSON.parse(clients);
|
||||||
const kids = box.get_children();
|
const kids = box.get_children();
|
||||||
kids.forEach(kid => kid.clear());
|
kids.forEach(kid => kid.clear());
|
||||||
// console.log('----------------------------');
|
|
||||||
for (let i = 0; i < allClients.length; i++) {
|
for (let i = 0; i < allClients.length; i++) {
|
||||||
const client = allClients[i];
|
const client = allClients[i];
|
||||||
const childID = client.workspace.id - (offset + startWorkspace);
|
const childID = client.workspace.id - (offset + startWorkspace);
|
||||||
@@ -364,18 +362,6 @@ export default () => {
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// const modID = client.workspace.id % NUM_OF_WORKSPACES_SHOWN;
|
|
||||||
// console.log(`[${startWorkspace} -> ${startWorkspace + workspaces - 1}] ? (${client.workspace.id} == ${modID})`);
|
|
||||||
// // console.log(`[${startWorkspace} -> ${startWorkspace + workspaces}] ? (${modID})`);
|
|
||||||
// if (startWorkspace <= modID && modID < startWorkspace + workspaces) {
|
|
||||||
// console.log('i care');
|
|
||||||
// const clientWidget = clientMap.get(client.address);
|
|
||||||
// console.log(childID, kids[childID], clientWidget);
|
|
||||||
// if (kids[childID] && clientWidget) {
|
|
||||||
// console.log('hmm remove', clientWidget.attribute)
|
|
||||||
// kids[childID].remove(clientWidget);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
kids.forEach(kid => kid.show());
|
kids.forEach(kid => kid.show());
|
||||||
}).catch(print);
|
}).catch(print);
|
||||||
|
|||||||
Reference in New Issue
Block a user