Skip to content
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

Flicker on removing and adding notifications from eww #9

Open
VixieTSQ opened this issue Feb 4, 2024 · 4 comments
Open

Flicker on removing and adding notifications from eww #9

VixieTSQ opened this issue Feb 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@VixieTSQ
Copy link
Contributor

VixieTSQ commented Feb 4, 2024

The notification-frame window will flicker on every update from end. This is because end calls eww open even when the window is already open, which (oddly) causes the window to reload.

@lucalabs-de
Copy link
Owner

lucalabs-de commented Feb 4, 2024

I've seen this in the eww issues before. Apparently this only happens on some WMs. With bspwm it works fine. Interestingly, there's the issue elkowar/eww#260 which was fixed. Apparently there has been a regression.

The question is how to fix this on our end (lol). Is there a command that gives you the state of the eww window? Just keeping track of it with a boolean flag seems too fragile since you can also close the window manually.

@lucalabs-de lucalabs-de added the bug Something isn't working label Feb 4, 2024
@lucalabs-de
Copy link
Owner

Okay, it seems that eww debug contains a field called open_windows that we can use.

@VixieTSQ
Copy link
Contributor Author

VixieTSQ commented Feb 4, 2024

The question is how to fix this on our end (lol). Is there a command that gives you the state of the eww window? Just keeping track of it with a boolean flag seems too fragile since you can also close the window manually.

In a shell script I was writing, I just did this hacky little thing

if [ "$(eww active-windows | grep 'indicator-frame')" == "" ]
then
    eww open indicator-frame
fi

@lucalabs-de
Copy link
Owner

Oh, I'm blind, I did not see that command on the help page. Even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants