feat(ags applauncher): remove eventbox wrapper
This commit is contained in:
parent
968ac9bfbf
commit
9b7fd772f0
1 changed files with 4 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { App, Applications, Utils, Widget } from '../../imports.js';
|
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 { Separator } from '../misc/separator.js';
|
||||||
import { PopupWindow } from '../misc/popup.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({
|
export default PopupWindow({
|
||||||
name: 'applauncher',
|
name: 'applauncher',
|
||||||
child: EventBox({
|
focusable: true,
|
||||||
onHover: () => {
|
child: Applauncher(),
|
||||||
App.getWindow('applauncher').focusable = true;
|
|
||||||
},
|
|
||||||
onHoverLost: () => {
|
|
||||||
App.getWindow('applauncher').focusable = false;
|
|
||||||
},
|
|
||||||
child: Applauncher(),
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue