From 9b7fd772f0410439a7aa4c8e89b0dde79b6078c3 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 16 Oct 2023 14:13:30 -0400 Subject: [PATCH] feat(ags applauncher): remove eventbox wrapper --- hosts/wim/config/ags/js/applauncher/main.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/hosts/wim/config/ags/js/applauncher/main.js b/hosts/wim/config/ags/js/applauncher/main.js index 8f7e9c91..f681ad6c 100644 --- a/hosts/wim/config/ags/js/applauncher/main.js +++ b/hosts/wim/config/ags/js/applauncher/main.js @@ -1,5 +1,5 @@ import { App, Applications, Utils, Widget } from '../../imports.js'; -const { Label, Box, Icon, Button, Scrollable, Entry, EventBox } = Widget; +const { Label, Box, Icon, Button, Scrollable, Entry } = Widget; import { Separator } from '../misc/separator.js'; import { PopupWindow } from '../misc/popup.js'; @@ -114,16 +114,9 @@ const Applauncher = ({ windowName = 'applauncher' } = {}) => { }); }; -// FIXME: make it so I don't have to click to trigger onHoverLost +// FIXME: make it unfocusable export default PopupWindow({ name: 'applauncher', - child: EventBox({ - onHover: () => { - App.getWindow('applauncher').focusable = true; - }, - onHoverLost: () => { - App.getWindow('applauncher').focusable = false; - }, - child: Applauncher(), - }), + focusable: true, + child: Applauncher(), });