Client: Clarify warnings about unexpected enter/leave events
With the previous wording it was a bit unclear whether this was a client problem or not. Also adds logging category. Change-Id: I61084c0b2c7f17408575d1d4b6cc7809c4c6d99d Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
f6dd4ab120
commit
98b7643fdd
@ -496,9 +496,11 @@ void QWaylandWindow::surface_enter(wl_output *output)
|
||||
auto addedScreen = QWaylandScreen::fromWlOutput(output);
|
||||
|
||||
if (mScreens.contains(addedScreen)) {
|
||||
qWarning() << "Unexpected wl_surface.enter received for output with id:"
|
||||
<< wl_proxy_get_id(reinterpret_cast<wl_proxy *>(output))
|
||||
<< "screen name:" << addedScreen->name() << "screen model:" << addedScreen->model();
|
||||
qWarning(lcQpaWayland) << "Ignoring unexpected wl_surface.enter received for output with id:"
|
||||
<< wl_proxy_get_id(reinterpret_cast<wl_proxy *>(output))
|
||||
<< "screen name:" << addedScreen->name()
|
||||
<< "screen model:" << addedScreen->model()
|
||||
<< "This is most likely a bug in the compositor.";
|
||||
return;
|
||||
}
|
||||
|
||||
@ -515,9 +517,11 @@ void QWaylandWindow::surface_leave(wl_output *output)
|
||||
auto *removedScreen = QWaylandScreen::fromWlOutput(output);
|
||||
bool wasRemoved = mScreens.removeOne(removedScreen);
|
||||
if (!wasRemoved) {
|
||||
qWarning() << "Unexpected wl_surface.leave received for output with id:"
|
||||
<< wl_proxy_get_id(reinterpret_cast<wl_proxy *>(output))
|
||||
<< "screen name:" << removedScreen->name() << "screen model:" << removedScreen->model();
|
||||
qWarning(lcQpaWayland) << "Ignoring unexpected wl_surface.leave received for output with id:"
|
||||
<< wl_proxy_get_id(reinterpret_cast<wl_proxy *>(output))
|
||||
<< "screen name:" << removedScreen->name()
|
||||
<< "screen model:" << removedScreen->model()
|
||||
<< "This is most likely a bug in the compositor.";
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user