-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
Waybar freezes upon activation of group drawers #3029
Comments
The layout looks like this:
At the moment the hover handler is added to
This can break in a number of ways. Ultimately leaving one widget or the revealer just to enter another widget should not trigger a state change of the revealer. Intuitively these should be handled by the outer |
I recommend tweaking your CSS to make the gaps between group elements smaller, and/or making the elements themselves bigger and see if it resolves the issue |
I tested this using both the default and an empty |
Try with my configs and tell me how it goes |
When leaving any of the groups upwards waybar freezes and I have to restart it. Leaving them sideways closes them correctly, assuming the bar is on the left. |
Assuming the bar is vertical (as is the one from my config) what do you mean by "leaving them sideways"? |
Maybe this clarifies my explanation: recording.mp4Leaving the first widget to the right fires a single LEAVE event and closes the revealer. When entering the revealer the handler gets flooded with ENTER and LEAVE events and blocks. Commenting out Line 92 in 2c927de
set_reveal_child(false) breaking things for some reason this is still one more ENTER and LEAVE event than I'd expect.
|
Fixes Alexays#3029 TODO: contained widgets don't seem to receive any input events
I've fixed the hover issue, but introduced some other event-related issues. I'm not very familiar with GTK3 and was mostly looking into this out of curiosity, so I'd appreciate any insights on this. |
I am still experiencing an issue with 0.10.3 when entering/leaving the group parallel to the bar. Config:
waybar-groups.mp4Should I open a new issue for this, @Alexays ? I haven't checked whether anything of #3044 could be reused. |
I probably caused this issue with too aggressive refactoring starting in: #3201. |
Absolutely. I haven't been able to trigger any "critical" issues. |
Can you try adding this config in your group, see if that makes things better for you?
|
It doesn't. I've never noticed any difference when setting |
This time removing any padding and margin from the group seems to solve the high-frequency toggle issue. I haven't been able to trigger the transition animation yet. I'd be fine with closing this issue. |
Cool. I have a feeling what you're experiencing with the glitchy looking hitbox behavior in your latest gif is native to GTK, maybe GTK3 specifically, I have no idea, but I have an idea about frontend frameworks and this looks familiar. Maybe because a combination of border radius, no smoothing animation and maybe also some hover styling which increase width of GUI components is causing the issue. As for why smoothing animation is not working for you it may be some issue related to waybar, but I haven't seen it yet myself. |
And I agree that closing the issue is fine from my current understanding. Especially since it can be confusing that the original post is not the issue anymore. Maybe a new issue is warranted. |
Just thought I'd tack this on here as there seem to be several similar issues (please let me know if I should split it out) This may just be an issue with my lack of CSS knowledge, but I can't seem to find how I should go about styling my drawer. My power menu (which is in many ways similar to the example on the wiki) is in it's own sub group - essentially some margin and To my understanding this could be fixed by giving the group leader an additional styling class when the drawer is active (removing the border radius and/or syncing the animation with the group children), which is discussed here in some places. For reference, my waybar config & css can be found here (beware, here be reproducible dragons): https://github.com/TheRealGramdalf/nixos/blob/a4ae9897abe0e734dfe18b62fd076de8bdd94de1/config/users/gramdalf/hypr/waybar.nix#L133-L157 waybar.mp4 |
@TheRealGramdalf See my reply here for a workaround for this problem in 0.10.3. (Notice especially how I set the border-radius on hover.) It will not be a perfect workaround as mentioned in that post. Btw, this new approach will probably stop working soon when group hover is removed/reverted, I'm expecting that to happen, but don't know anything. It's just causing too many issues unfortunately. |
Mystery solved. I forgot that I use the following to reduce the amount of animations encountered in librewolf/firefox.
With the styling posted above I'm still observing the same issue, just less erratic. |
Closing this in favour of #3243. Using @haug1's snippet referenced above as inspiration I'm using the following. Border radius and animation smoothing don't seem to cause any issues in this case, but padding and margin should only be added to #group-upower {
border-radius: 15px;
background-color: alpha(#747474, 0.3);
}
#group-upower > * > * {
padding: 0 4px;
} |
Waybar v0.10.0 and 2c927de on sway 1.9 with GTK 3.24.41. Config:
Hovering over the group usually causes waybar to freeze and produce high CPU load. I noticed that
Group::handleMouseHover
gets flooded withGDK_{ENTER,LEAVE}_NOTIFY
events. I don't see any unusual wayland events. My gtk3 distribution wasn't compiled withG_ENABLE_DEBUG
, so I didn't check that.The text was updated successfully, but these errors were encountered: