From 2a5de43e616d8f49fb5e9ffde3b34f9ea2451bdd Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:19:28 +0700 Subject: [PATCH] overview: remove unecessary stuff --- .config/ags/modules/overview/main.js | 2 +- .config/ags/modules/overview/windowcontent.js | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.config/ags/modules/overview/main.js b/.config/ags/modules/overview/main.js index 0bab9194f..185c6010c 100644 --- a/.config/ags/modules/overview/main.js +++ b/.config/ags/modules/overview/main.js @@ -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'], diff --git a/.config/ags/modules/overview/windowcontent.js b/.config/ags/modules/overview/windowcontent.js index e4ef22e9e..9145f0c55 100644 --- a/.config/ags/modules/overview/windowcontent.js +++ b/.config/ags/modules/overview/windowcontent.js @@ -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 = () => { }) , }); -}; +};