nixos-configs/modules/ags/config/ts/misc/closer.ts
matt1432 28615e8152
All checks were successful
Discord / discord commits (push) Has been skipped
fix(ags nvim): get eslint to work again and update deps
2024-08-01 12:54:32 -04:00

13 lines
292 B
TypeScript

// Types
import { PopupWindow } from 'global-types';
export default () => {
(App.windows as PopupWindow[])
.filter((w) => w &&
w.close_on_unfocus &&
w.close_on_unfocus !== 'stay')
.forEach((w) => {
App.closeWindow(w.name);
});
};