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

Dropdowns showing half a screen away from where they were clicked (on linux wayland and ultrawide screen) #24473

Open
JacekP1 opened this issue Apr 15, 2024 · 3 comments
Labels
Wayland wxGTK Wayland-specific issues

Comments

@JacekP1
Copy link

JacekP1 commented Apr 15, 2024

When hovering over the main dropdown dialogs while using wayland, the dropdown menu will not be under the menu item.

Recording:
Screencast_20240413_213139.webm

Steps to reproduce:

1.Run linux and wayland (in my case fedora KDE wayland)
2.Have an ultrawide screen (works fine on my second normal screen)
3.Move the window so that the dropdowns should show up on the left half of the screen
4.Hover over the dropdown menu

Tested apps:

KiCad (wxWidgets 3.2.4)
Audacity

@vadz vadz added the Wayland wxGTK Wayland-specific issues label Apr 18, 2024
@vadz
Copy link
Contributor

vadz commented Apr 18, 2024

This really looks like a kwin bug to me, there is absolutely no reason for it to show menus on an ultrawide display differently than on a normal one.

Can you run GTK demo example on your system? You should see the same thing with its menus.

@JacekP1
Copy link
Author

JacekP1 commented Jun 2, 2024

Apologies for the long delay in my response.

I have finally managed to compile a menu example using gtk3 toolkit. It does not show the same bug, the menu dropdowns show up in their proper place. Does that mean it's a kwin bug?

Regards,
Jacek Pawlik

@vadz
Copy link
Contributor

vadz commented Jun 8, 2024

No, if GTK sample works correctly, it implies that the problem is in wxGTK, but I have absolutely no idea where could it be because we don't seem to be doing anything related to the menu positioning in src/gtk/menu.cpp at all, letting GTK do it...

Which GTK menu example did you compile, exactly? Could you please leave a link to it or just attach it here please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wayland wxGTK Wayland-specific issues
Projects
None yet
Development

No branches or pull requests

2 participants