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

right click menu is broken after 5.5.1 update on Hyprland (Linux) #28368

Closed
pmoieni opened this issue Sep 8, 2024 · 15 comments
Closed

right click menu is broken after 5.5.1 update on Hyprland (Linux) #28368

pmoieni opened this issue Sep 8, 2024 · 15 comments

Comments

@pmoieni
Copy link

pmoieni commented Sep 8, 2024

Steps to reproduce

  1. install telegram from the official website
  2. open a chat
  3. right click on a message

Expected behaviour

the menu should display correctly

Actual behaviour

the menu is zoomed out and some items are not shown, moving the mouse over the menu causes it to flicker ending up in a full app crash

example:

recording2.mp4

Operating system

OpenSuse Tumbleweed - Hyprland

Version of Telegram Desktop

5.5.1

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@pmoieni pmoieni added the bug label Sep 8, 2024
@ilya-fedin
Copy link
Contributor

Hm. It was ok on 5.4.x but is broken with 5.5.x? I think the only thing changed is Qt updated so I have no idea what could be done about that...

@ilya-fedin
Copy link
Contributor

And I can't reproduce on my KDE machine...

@pmoieni
Copy link
Author

pmoieni commented Sep 9, 2024

@ilya-fedin can't reproduce on KDE either but I get this error in the terminal on Hyprland:

qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x7f34e42b0920, name="TWidgetClassWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x7f34aef4fc60, name="TWidgetClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.

@DWarez
Copy link

DWarez commented Sep 12, 2024

+1, I'm also getting this error:

Happens both with telegram-desktop and materialgram.

edit: #27067 seems related

qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x7a1e70dfebc0, name="TWidgetClassWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x7a1e0ff2d780, name="TWidgetClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 12, 2024

Sadly no one provided valid reproduction steps that would work in a controlled environment (virtual machine) so the bot is going to close the issue if this won't change.

@asgmojtaba
Copy link

asgmojtaba commented Sep 14, 2024

I have same issue on hyprland when enabling scaling (150% on my 4k display). here are the journalctl logs when working with contextual menus :

Sep 14 12:23:27 tiny Telegram[27409]: qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x7f39dd6fc100, name="TWidgetClassWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x7f39baae34e0, name="TWidgetClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.

I don't know it could be reproduced on KDE, but for my setup (which is hyprland) it reproduces every times when using telegram with scaling enabled on my 4k monitor.

thanks in advance

Update:
After enabling Enable precise High DPI scaling on Exprimental Settigns, the issue has gone!

@DWarez
Copy link

DWarez commented Sep 14, 2024

I have same issue on hyprland when enabling scaling (150% on my 4k display). here are the journalctl logs when working with contextual menus :

Sep 14 12:23:27 tiny Telegram[27409]: qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x7f39dd6fc100, name="TWidgetClassWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x7f39baae34e0, name="TWidgetClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.

I don't know it could be reproduced on KDE, but for my setup (which is hyprland) it reproduces every times when using telegram with scaling enabled on my 4k monitor.

thanks in advance

For me, setting the scaling to 2 solves the issue.

@ilya-fedin
Copy link
Contributor

sadly logs won't help - a way to reproduce is needed

@wchichih
Copy link

wchichih commented Sep 15, 2024

图片

Same problem with telegram flatpak 5.5.x under Debian sid KDE 5 Wayland. 2.2K display with 150% scale.

App doesn't crash, but right click menu zoomed out.

图片

Enable precise High DPI scaling in experimental features can get right click menu fully showed, but get icons in app blurry.

图片
图片

@wchichih
Copy link

Update: add QT_WAYLAND_DISABLED_INTERFACES=wp_fractional_scale_manager_v1 to env can get menu shows correctly.

图片

@ilya-fedin
Copy link
Contributor

I still can't reproduce.

@DWarez
Copy link

DWarez commented Sep 15, 2024

Enable precise High DPI scaling in experimental features can get right click menu fully showed, but get icons in app blurry.

that fixed it, thanks a lot!

@ilya-fedin
Copy link
Contributor

Searching by hyprland bugtracker I found this which looks exactly like the issue described here (popup menu gets wrong scale factor).

@wchichih
Copy link

wchichih commented Sep 16, 2024

I still can't reproduce.

@ilya-fedin I have reproduced it. Here is how-to:

  1. prepare virt-manager and debian-12.7-kde-live ISO.
  2. create new virtual machine and install system with Debian 12.7 KDE live ISO image.
  3. boot vm, login with wayland session.
  4. set vm's display to 1920*1200, scale to 150%.
  5. install flatpak.
  6. flatpak install telegram.
  7. run telegram.

And then see screenshot below:

图片

@ilya-fedin
Copy link
Contributor

2. Debian 12.7 KDE live ISO image.

It contains old KDE version that is known to be bugged with fractional scaling. It's a bug on KDE/Hyprland side, not tdesktop. In case of KDE you have to wait for version 6, in case of hyprland people have to wait until the linked bug gets fixed on hyprland side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants