Update overview.js

This commit is contained in:
end-4 2024-01-05 08:22:07 +07:00
parent c7c9225fb2
commit 92d98a1a43

View file

@ -307,10 +307,10 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
}]],
setup: (box) => {
box
.hook(Hyprland, (box, name, data) => {
if (["changefloatingmode", "movewindow"].includes(name))
box._update(box);
}, 'event')
// .hook(Hyprland, (box, name, data) => { // idk, does this make it lag occasionally?
// if (["changefloatingmode", "movewindow"].includes(name))
// box._update(box);
// }, 'event')
.hook(Hyprland, (box) => box._update(box), 'client-added')
.hook(Hyprland, (box) => box._update(box), 'client-removed')
.hook(App, (box, name, visible) => { // Update on open