-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widgets stay hovered when mouse leaves #372
Comments
The video did not upload properly. Here is the same video: recording.1.mp4 |
Same here. This bug happens for me only when I assign opening menu to primary click, just like you did; If a menu is opened with secondary click, it works correctly. So as a temporary workaround you can do the same. |
In my experience, |
The culprit seems to be ags's Workaround: const child = Widget.Label({label: "or any other Widget"});
const eventBox = new Widget.EventBox({
child,
onHover: event => {
// this works :)
},
onHoverLost: event => {
// this doesn't work :(
},
});
eventBox.connect('leave-notify-event', (_, event) => {
// this works :)
});
return eventBox; |
When I use the
:hover
property in css for a system tray icon, it still stays hovered when the mouse leaves if I enter the menu, then close it without clicking the icon, as demonstrated in this video:recording.mp4
This and this is the code for the system tray.
The text was updated successfully, but these errors were encountered: