Client: Make xdg_output.name required only if it's supported
The xdg_output.name property is available only since version 2. Fixes: QTBUG-98010 Pick-to: 6.2 Change-Id: I1051b8e9d99fe27f0170ea202deac9cdad9818ae Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
06f069bed8
commit
caded7fb85
@ -87,7 +87,8 @@ uint QWaylandScreen::requiredEvents() const
|
||||
uint ret = OutputDoneEvent;
|
||||
|
||||
if (mWaylandDisplay->xdgOutputManager()) {
|
||||
ret |= XdgOutputNameEvent;
|
||||
if (mWaylandDisplay->xdgOutputManager()->version() >= 2)
|
||||
ret |= XdgOutputNameEvent;
|
||||
|
||||
if (mWaylandDisplay->xdgOutputManager()->version() < 3)
|
||||
ret |= XdgOutputDoneEvent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user