eww icon indicating copy to clipboard operation
eww copied to clipboard

[BUG] Opening a window that is already open closes and reopens it, causing flickering

Open skiletro opened this issue 2 years ago • 1 comments

Checklist before submitting an issue

  • [X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • [X] I have specifically verified that this bug is not a common user error
  • [X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

Running eww open on a window that is already open will cause the window to close and then reopen causing flickering. Seems to had been fixed a while ago in https://github.com/elkowar/eww/pull/263 but it still seems to be an issue.

Reproducing the issue

Running eww open on an already open window will cause it, however I noticed it when using the new --duration flag.

Expected behaviour

Opening a window that is already open should just keep the window open without first closing it. In the case of the --duration flag, it should just reset the duration the window should be open for.

Additional context

Noticed it while using eww to create a custom volume/brightness OSD. Running the eww open osd --duration 2000 command I noticed the flickering, and after checking eww logs it confirmed my suspicion. If there is a better way to do this, excuse my ignorance with this bug report.

skiletro avatar Aug 22 '23 13:08 skiletro

Faced exactly the same issue. I hacked up a fix for this, until this is merged you might want to try my feature branch / fork.

BeneSim avatar Jun 18 '24 18:06 BeneSim