ags: update

This commit is contained in:
end-4
2024-01-29 22:51:15 +07:00
parent c5d8a4a9cf
commit 54492e9fc3
7 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { SearchAndWindows } from "./windowcontent.js";
export default () => Widget.Window({
name: 'overview',
exclusivity: 'ignore',
focusable: true,
keymode: 'exclusive',
popup: true,
visible: false,
anchor: ['top'],
@@ -270,18 +270,11 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
},
setup: (box) => box
.hook(overviewTick, (box) => box.attribute.update(box))
// .hook(Hyprland, (box, name, data) => { // idk, does this make it lag occasionally?
// console.log(name)
// if (["changefloatingmode", "movewindow"].includes(name))
// box.attribute.update(box);
// }, 'event')
.hook(Hyprland, (box, clientAddress) => {
box.attribute.update(box)
// console.log('close', clientAddress);
}, 'client-removed')
.hook(Hyprland, (box, clientAddress) => {
box.attribute.update(box);
// console.log('open', clientAddress);
}, 'client-added')
.hook(Hyprland.active.workspace, (box) => box.attribute.update(box))
.hook(App, (box, name, visible) => { // Update on open