Mailing List Archive

1 2  View All
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: new
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by David Hampton):

I see the same message on one of my Fedora32 frontends, running master
from last night.
{{{
"Display: Requesting EGL for 'Mesa Project, 1.5'"
}}}
This is on an Intel NUC.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:23>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: new
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by David Hampton):

I should add that I'm running X not Wayland.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:24>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: new
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by Klaas de Waal):

Compiled the latest master just now and looks OK. Can now start mythtv-
setup without additional environment variables or command line parameters
and the main windows appears.

The following messages
{{{
2020-07-30 00:04:38.192053 I Qt: Wayland does not support
QWindow::requestActivate()
2020-07-30 00:04:38.345798 I Qt: Wayland does not support
QWindow::requestActivate()

}}}
do still appear. When an environment variable is set, either
QT_WAYLAND_DISABLE_WINDOWDECORATION or QT_WAYLAND_SHELL_INTEGRATION these
messages do not appear. In all cases I do now get the main window.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:25>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: new
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by Mark Kendall):

Not sure if I messed up the commit hook or it just hasn't processed yet -
but this should be fixed in master following:-

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

Unless anyone still has isses, I will backport to fixes/31 in the next day
or so.

As noted in the commit, there is probably a more performant fix for this
issue - but it requires including Qt private headers.

p.s. re "Display: Requesting EGL for 'Mesa Project, 1.5'" - this is just
some logging to show whether we are trying to force EGL over GLX - which
is best for pretty much anything other than NVidia on linux. Wayland will
be defaulting to egl anyway.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:26>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: new
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by Mark Kendall <mark.kendall@…>):

In [changeset:"b6e7e18a4c209a0dd246c4624db918af0d5152ff/mythtv"
b6e7e18a4c/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="b6e7e18a4c209a0dd246c4624db918af0d5152ff"
Wayland: Fix alpha blending

- each window in wayland has its own buffer/texture and these are always
composited with alpha blending
- as a result any alpha blended areas of our UI will allow the
underlying window to be visible if the window/surface buffer has a
buffer with alpha
- usually the default surface format does not request a buffer with
alpha but when wayland decorations are enabled, Qt overrides the alpha
depth
- so as a workaround, disable Qt wayland decorations, which we don't
need anyway
- note - this may not be the best solution. Using
wl_surface_set_opaque_region on our surface would allow the compositor
to optimise rendering as it knows it does not need to show anything
hidden by the window. In testing this works but requires linking to
libwayland-client and including Qt private headers (which is far from
ideal)

- refs #13483
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:27>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: closed
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
----------------------------------+------------------------------
Changes (by Mark Kendall <mark.kendall@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"e537ea801af3a1d69c6fd0dbf8060ff22ba34cf2/mythtv"
e537ea801/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="e537ea801af3a1d69c6fd0dbf8060ff22ba34cf2"
Wayland: Fix alpha blending

- each window in wayland has its own buffer/texture and these are always
composited with alpha blending
- as a result any alpha blended areas of our UI will allow the
underlying window to be visible if the window/surface buffer has a
buffer with alpha
- usually the default surface format does not request a buffer with
alpha but when wayland decorations are enabled, Qt overrides the alpha
depth
- so as a workaround, disable Qt wayland decorations, which we don't
need anyway
- note - this may not be the best solution. Using
wl_surface_set_opaque_region on our surface would allow the compositor
to optimise rendering as it knows it does not need to show anything
hidden by the window. In testing this works but requires linking to
libwayland-client and including Qt private headers (which is far from
ideal)

- Fixes #13483

(cherry picked from commit b6e7e18a4c209a0dd246c4624db918af0d5152ff)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:28>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer [ In reply to ]
#13483: Wayland in Fedora 31 does not allow focus grabbing from the compositer
----------------------------------+------------------------------
Reporter: hobbes1069 | Owner: Mark Kendall
Type: Bug Report - General | Status: closed
Priority: major | Milestone: 31.1
Component: MythTV - General | Version: v30-fixes
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
----------------------------------+------------------------------

Comment (by wberrier):

I'm still seeing this on Fedora 38 under wayland.

The workaround that worked was to use the "-platform xcb" command line
arguments.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13483#comment:29>
MythTV <http://www.mythtv.org>
MythTV Media Center

1 2  View All