Opened 7 months ago

Closed 6 weeks ago

#13483 closed Bug Report - General (Fixed)

Wayland in Fedora 31 does not allow focus grabbing from the compositer

Reported by: hobbes1069 Owned by: mark-kendall
Priority: major Milestone: 31.0
Component: MythTV - General Version: v30-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

A user reports the following error when trying to launch MythTV frontend on Fedora 31 Beta:

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

Per this forum thread it looks like it's no longer supported:

https://forum.qt.io/topic/90639/comparing-qt-widgets-app-under-gnome-wayland-using-platform-wayland-egl-to-xcb/9

Change History (7)

comment:1 Changed 7 months ago by Gary Buhrmaster

In *theory* fixed with later Qt and later xdg-shell (I think Qt 5.12 (possibly backported to Qt 5.11) and weston 6). However, F31 beta's may be problematic in other ways. Is it reproducable on F30 stable?

comment:2 Changed 5 months ago by jayjaytay

I can confirm that I'm getting the same error under Wayland and Fedora 31 final with the following packages installed:

qt5-qtwayland-5.12.5-2.fc31.x86_64
mutter-3.34.1-4.fc31.x86_64
weston-7.0.0-2.fc31.x86_64

MythTV works fine under Xorg, however.

Last edited 5 months ago by jayjaytay (previous) (diff)

comment:3 Changed 5 months ago by Stuart Auchterlonie

Milestone: needs_triage31.0
Owner: set to mark-kendall
Status: newassigned

Mark,

is this something we can take care of in your OpenGL rewrite, or do we need to address this separately?

Regards Stuart

comment:4 Changed 5 months ago by Stuart Auchterlonie

Summary: Wayland in Fedora 31 Beta does not allow focus grabbing from the compostierWayland in Fedora 31 does not allow focus grabbing from the compositer

Also crashes, see #13498

comment:5 Changed 2 months ago by mark-kendall

From the description, I'm not sure what the actual reported issue is here.

For me, in limited testing using master, mythfrontend starts as normal but the contents of the screen are not displayed. If I navigate as normal (by guesswork) to a playback screen, playback is fine and the UI is then displayed normally after exiting playback.

So the 'qt.qpa.wayland: Wayland does not support QWindow::requestActivate()' message *may* be a red herring - but somewhere we are triggering the correct behaviour when either entering or exiting playback.

If I force the use of the Qt painter, everything is fine (but no video playback)

comment:6 Changed 2 months ago by mark-kendall

Oops - forgot to reference this in commit.

Should be fixed by:

https://github.com/MythTV/mythtv/commit/f42ae424cd54d356b6aa93625e83dcde99129a8f

comment:7 Changed 6 weeks ago by mark-kendall

Resolution: Fixed
Status: assignedclosed

Rendering works without issue on Wayland with master/v31 - although the requestActivate warnings are still received - they do not appear to be an issue.

Note: the fix applied to master/v31 cannot be backported as the code has changed too much - and a similar fix is unlikely to work with the old code regardless.

If there is still an issue, please open a new ticket.

Note: See TracTickets for help on using tickets.