Hello! On Mon, 4 Sep 2023 21:35:22 -0300 z411 <z...@omaera.org> wrote: > Telegram already used Wayland before this (as do all Qt5/Qt6 apps) and > it had the option for system decorations. The icon also worked, for some > reason it doesn't work now.
Since version 4.8.3 Telegram Desktop needs Qt6 for complete Wayland integration. Although, our package is build against Qt5 yet. Some plugins that tdesktop relies on were not built against the latest Qt, and migration was postponed. > The latest official release (4.9.3) also works on Wayland with system > decorations, and the 4.8.1 Debian package works as well. Even with > QT_QPA_PLATFORM=wayland. It even shows some warnings related to Wayland > and xeyes shows me it's not running under XWayland. Please correct me if > I'm wrong. > > > In genuine Wayland there is no such thing as system decorations. > > As far as I understand, there is, there's the xdg-decoration-v1 protocol > supported by KWin and Sway which they use to draw system decorations on > Wayland windows. You are right but this protocol is an optional part of Wayland. KWin in KDE Plasma implements the protocol, Mutter in GNOME does not. For now, I will block the native Wayland integration and the coming update will prefer Xwayland because of unresolved glitches. The default window frame looks not as intended, it has no context menu, and it can double while switching the checkbox "Use system window frame" in the Settings. Of course, you always can force native Wayland but at your own risk. I will also add a patch restoring the checkbox in all modes.