nixos-configs/devices/wim/config/ags/js/misc/closer.js

14 lines
318 B
JavaScript
Raw Normal View History

import App from 'resource:///com/github/Aylur/ags/app.js';
// TODO: find a way to not need this?
import Pointers from '../../services/pointers.js';
export default () => {
Array.from(App.windows)
.filter(w => w[1].closeOnUnfocus)
.forEach(w => {
App.closeWindow(w[0]);
});
};