lxqt-panel icon indicating copy to clipboard operation
lxqt-panel copied to clipboard

Wrong position of menus (and tooltips) with bottom/right panel on Wayland

Open gen2brain opened this issue 1 year ago • 7 comments

Expected Behavior

The menu and submenus should be shown in the correct positions.

Current Behavior

The attached screenshot shows the issue.

Possible Solution
Steps to Reproduce (for bugs)

Start Wayland session with labwc compositor.

Context

There are no issues with the fancymenu, but I prefer to use plain ol' mainmenu even with this issue.

System Information
  • LXQt Version: 2.1.0
  • LXQt panel Version: 2.1.1
  • Distribution & Version: Gentoo
  • Qt Version: 6.7.3
  • liblxqt Version: 2.1.0

2024-11-16_09-05

gen2brain avatar Nov 16 '24 08:11 gen2brain

I can confirm this on Wayfire as well with 2.1.0

2024-11-16_14:00:49

marcusbritanicus avatar Nov 16 '24 08:11 marcusbritanicus

Thanks, but we've been aware of this for a long time (there may be an open report about it). It's a Qt bug.

If you use Main Menu, put the panel at the top.

tsujan avatar Nov 16 '24 10:11 tsujan

I only found this one https://github.com/lxqt/lxqt-panel/issues/1990, but it is closed, marked as wontfix, and didn't look like my case at first. I guess I will have to leave with it in the Wayland session, I don't use it often anyway. Is there an open Qt bug that I can follow?

gen2brain avatar Nov 16 '24 10:11 gen2brain

I only found this one https://github.com/lxqt/lxqt-panel/issues/1990,

Yes, I wasn't sure that we had a report about it; hence not closing this one. It's good to keep track of such Qt problems. Main Menu should be OK if you put the panel at the top.

Is there an open Qt bug that I can follow?

I'm not aware of any. By Qt, I meant layer-shell-qt or QtWayland (or both); Qt's base (qt6-base) may be OK.

tsujan avatar Nov 16 '24 10:11 tsujan

Thanks. I may as well try to use the new and fancy menu. I have decades of using the bottom panel everywhere, and I have used your panel since razor-qt, habits are hard to break.

gen2brain avatar Nov 16 '24 10:11 gen2brain

You might see the same problem in some other menus, especially in context menus (Status Notifier?) with a bottom/right panel.

We usually don't wait for a fix in Qt but make workarounds. Sadly, no workaround is found for this one yet.

tsujan avatar Nov 16 '24 10:11 tsujan

The same can be seen with the "add|remove to favorites" dialog in fancy menu and with directorymenu widget, only with right or bottom panels. Also tooltips cover the items with those positions. So top panel on wayland or living with it. I've seen a Qt bug about it but can't find it atm.

stefonarch avatar Nov 16 '24 10:11 stefonarch

Hi. Is there news about upstream fix of this bug? Will Wayland taskbar support v2 help with this issue?

There is small info about issue in wiki.qt.io: For instance positioning of popups: tooltips, comboboxes, menus, and basically any QWindow which can be a transient child of another window

Looks like I found upstream bug: https://bugreports.qt.io/browse/QTBUG-99618 - main tracking bug https://bugreports.qt.io/browse/QTBUG-135883 - this one very similar to lxqt-panel's bug and it already has patch

q4a avatar Oct 03 '25 05:10 q4a

Thanks for tracking this! The mentioned PR is merged together with another and should be closed.

stefonarch avatar Oct 03 '25 07:10 stefonarch

@q4a Thanks for your informative comment!

tsujan avatar Oct 03 '25 11:10 tsujan

Thanks to several pings and even one small MR we got much bigger MR started in 2023 and it should fix issue: https://codereview.qt-project.org/c/qt/qtbase/+/491545

If I got it right: Qt 6.10 was released 2 days ago and we got this fix in Qt 6.11: https://wiki.qt.io/Qt_6.11_Release

q4a avatar Oct 15 '25 05:10 q4a