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
[BUG] Once clicked, button triggers from anywhere on the widget #1022
Comments
I'm having a similar issue. When my bar gets into this state, I no longer see hover highlighting on my other buttons, and it seems like only the one button can be interacted with. |
It's just a theory, but here's what I think is happening:
Whether my theory is correct or not, I've done some tests and I've noticed that this bug indeed only triggers if you release your mouse button after Note that releasing your mouse button before |
A way to solve the issue properly would be to replace your button with:
Unfortunately, eww currently doesn't have a You may also note that you don't need to put a really high timeout, you can do:
|
This seems to be true, the same happens with rofi wayland fork that uses layer shell protocol, when I added a sleep before open rofi everything work fine but without the sleep when click on any place that is an eww widget the rofi is (re)opened independent of the widget onclick event action. I'm using Hyprland too. |
I am/was experiencing the same behavior with eventboxes and buttons. Since the issue seems to be related to the As i am not really familiar with the whole ecosystem of gtk, signal handling, nor rust really - I dont know whether this is just a lucky guess or will break other stuff down the road. I am assuming however that the button press event is not released by default and therefore tied to the widget until the pointer/focus gets taken by a different one. Maybe there is a way to release it inside of the function? I changed the lines for the eventboxes to the following in: eww/crates/eww/src/widgets/widget_definitions.rs - line 852++:
|
Checklist before submitting an issue
Description of the bug
Whenever I click on a button it opens fine but then I can click anywhere on the window and it will activate the button. This only seems to happen when wlogout with the layer shell protocol is the button action. I have tested with notify-send and it seems to work fine
Reproducing the issue
eww.yuck
style.scss
Expected behaviour
The button only activating when clicked on it
Additional context
reproducing this bug requires wlogout installed
using eww version 0.4.0 65d622c
bug.mp4
The text was updated successfully, but these errors were encountered: