ags icon indicating copy to clipboard operation
ags copied to clipboard

Hyprland border flickers when closing a window with `closeWindowDelay`

Open musjj opened this issue 1 year ago • 3 comments

It seems that when a window is closed and closeWindowDelay is set, the border of the active window in Hyprland flickers for a bit.

https://github.com/Aylur/ags/assets/72612857/cda861e4-837b-4487-81d6-1249b213efaf

You can observe it when clicking away from the quicksettings popup window in your dotfiles. Interestingly, toggling the popup via the systemindicator button on the bar doesn't have this effect.

I first thought that the focus was being stolen by something temporarily. So I tried to listen to the activewindow event from the Hyprland socket, but it looks like that the active window didn't even change during the transition.

musjj avatar Feb 22 '24 09:02 musjj

It is most probably a Hyprland bug from switching focus from layer to client

Aylur avatar Feb 22 '24 11:02 Aylur

Yeah, might be something Hyprland-specific. Another thing I'm noticing is that it depends on your mouse click speed. If you tap really fast, the effect doesn't happen.

musjj avatar Feb 22 '24 12:02 musjj

I recently tried https://github.com/ErikReider/SwayNotificationCenter and it has a functional click-away behavior that doesn't have this problem. I wonder how they implemented it.

musjj avatar Jun 28 '24 10:06 musjj