fix(ags overview): get the right ref to mainBox in drag action

This commit is contained in:
matt1432 2023-09-27 22:20:21 -04:00
parent 4e19e5525a
commit 785dbf4bc8

View file

@ -62,7 +62,7 @@ export const WindowButton = ({address, ...params} = {}) => Button({
});
button.connect('drag-end', () => {
button.get_parent().destroy();
let mainBox = getWindow('overview').child.child;
let mainBox = getWindow('overview').child.children[0].child;
mainBox._updateClients(mainBox);
});
},