Hyprland: [Glitches] Hyprland doesn't play well with Telegram Desktop (or QT?)
I’ve checked if this is Telegram Desktop’s fault or if this happens only with Hyprland/Wayland sessions. But seems like it’s not happening on Sway.
I thought it was an animation bug, but by disabling them it looks like that the bugs becomes even more persisting. At the moment, the only way to get back to the normal window state is by changing workspace or switching to full-screen. Looks like this is a bug present even on qterminal, so it may be an issue that affects some QT programs.
How to reproduce
Reproducing differentiates between applications, but in the case of Telegram:
- Open the application
- Open a photo/video via the Media Viewer
- Try over and over until it glitches out
With
animations:enabled=0
, instead, the glitch appears every time the Media Viewer pops-up.
Infos
Screenshot
Logs
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (6 by maintainers)
this bug happens on some apps but on telegram-desktop it happens a lot. the workaround for the image viewer is perfect but the issue still remains, for example when resizing telegram window or creating a split that affects telegram.
it looks like the window is doing a transition to another window size and this transition doesn’t complete, hence the window ends on this glitchy gpu rendered intermediate state.
Is this caused by animations? I have animations.enabled = false, but maybe this just reduces the timing to 0 and animations are still enabled? (ie. same process happening when resizing)
It doesn’t happen on sway.
I can confirm that this still happens in both telegram desktop and nheko, though I’m not sure how to consistently reproduce it.
Here’s a workaround: Add the following to your hyperland.conf
This makes the media viewer window start as floating and therefor not take space in the dwindle tree. It still goes fullscreen. After closing telegram won’t be stretched, because its window size never changed in the first place.
(There are two window classes in the rule, as telegram installed from flatpak has a different window class as telegram installed from for example AUR)