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 issue on fancy menu items and left click in mainmenu items with niri #2120

Open
stefonarch opened this issue Sep 22, 2024 · 6 comments

Comments

@stefonarch
Copy link
Member

stefonarch commented Sep 22, 2024

The panel restarts in both conditions on niri but I don't find a backtrace file. Running the panel with WAYLAND_DEBUG=1 lxqt-panel 2> /tmp/niri-menu-panel.log I see

[2575265.632] {Display Queue} wl_display#1.error(wl_surface#76, 2, "xdg_popup was not created on the topmost popup")
wl_surface#76: error 2: xdg_popup was not created on the topmost popup
The Wayland connection experienced a fatal error: Protocol error

which makes me think of an issue in the panel itself, which only on niri leeds to a crash.

Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
  1. Use niri as compositor
  2. Try to add a app to favorites in fancy menu or
  3. open any app with main menu
  4. Panel restarts (if a module)
Context

Testing lxqt/lxqt-wayland-session#24

System Information
  • LXQt Version: git
  • Distribution & Version: arch
@tsujan
Copy link
Member

tsujan commented Sep 22, 2024

The panel restarts in both conditions on niri but I don't find a backtrace file.

If there's no coredump file, then the panel's process is stopped somehow, without any crash.

which makes me think of an issue in the panel itself...

On the contrary, there's nothing about lxqt-panel in it.

@tsujan tsujan changed the title Right click issue on fancy menu items and left click in mainmenu items Right click issue on fancy menu items and left click in mainmenu items with niri Sep 22, 2024
@stefonarch
Copy link
Member Author

stefonarch commented Sep 22, 2024

Searching for the error the first link:
https://bugreports.qt.io/browse/QTBUG-67988

but widgets sometimes sets the parent as the toplevel instead of the menu you would think of as the parent

https://wayland-book.com/xdg-shell-in-depth/popups.html

@tsujan
Copy link
Member

tsujan commented Sep 22, 2024

Searching for the error the first link:

And it shows that the problem is not in lxqt-panel. Since it happens only with niri, niri should be the culprit.

@stefonarch
Copy link
Member Author

Not niri itself but smithay then.

@tsujan
Copy link
Member

tsujan commented Sep 22, 2024

Searching for the error the first link:
https://bugreports.qt.io/browse/QTBUG-67988

Remove the menu-bar of FeatherPad or PCManFM-Qt or …, run it from a terminal, click its menu toolbar button to show its menu, open a sub-menu, and see the message in the terminal.

The last sentence is "Please fix the transient parent of the popup." It's nonsense; No one with an experience in Qt coding could say it.

@tsujan
Copy link
Member

tsujan commented Oct 25, 2024

Isn't this fixed in niri?

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

2 participants