Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.17
-
None
Description
When application only has one window(e.g. QWidget) and set the window flag contains Qt::WindowDoesNotAcceptFocus, then trigger a QMenu from the window by mouse clicking, user can not change the action selection with up/down key.
Please check my attachment, the reason is that the function setGrabPopup() is not called in the construtor QWaylandXdgSurfaceV6::QWaylandXdgSurfaceV6(), this is because of the transientParent is null. The value of transientParent is from window->transientParent(), but since the application has no focus, the return value is null. So no shell surface is found and can not construct the popup.
BTW, if uncomment my commtents of main.cpp to ensure the application at least have one window focus,the up/down key works for the popup menu.
I have compared with Windows and X11, not have this problem.