overview: remove unecessary stuff

This commit is contained in:
end-4
2024-04-08 18:19:28 +07:00
parent 4f53fbebc9
commit b8294e06ef
2 changed files with 2 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import PopupWindow from '../.widgethacks/popupwindow.js';
export default (id = '') => PopupWindow({
name: `overview${id}`,
exclusivity: 'ignore',
// exclusivity: 'ignore',
keymode: 'exclusive',
visible: false,
anchor: ['top'],
+1 -12
View File
@@ -51,12 +51,6 @@ const overviewContent = await OptionalOverview();
export const SearchAndWindows = () => {
var _appSearchResults = [];
const ClickToClose = ({ ...props }) => Widget.EventBox({
...props,
onPrimaryClick: () => App.closeWindow('overview'),
onSecondaryClick: () => App.closeWindow('overview'),
onMiddleClick: () => App.closeWindow('overview'),
});
const resultsBox = Widget.Box({
className: 'overview-search-results',
vertical: true,
@@ -210,11 +204,6 @@ export const SearchAndWindows = () => {
return Widget.Box({
vertical: true,
children: [
ClickToClose({ // Top margin. Also works as a click-outside-to-close thing
child: Widget.Box({
className: 'bar-height',
})
}),
Widget.Box({
hpack: 'center',
children: [
@@ -262,4 +251,4 @@ export const SearchAndWindows = () => {
})
,
});
};
};