Client: Log configure states to logging category

States are not visible in WAYLAND_DEBUG output since array values are not
printed there. Logging the states to the Wayland QPA logging category gives us
a convenient way of seeing what states are configured.

Change-Id: If71c6df3180eba3f8efb08135a67b417940c3ffe
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Johan Klokkhammer Helsing 2018-08-09 11:59:01 +02:00 committed by Johan Helsing
parent 83abc8bf60
commit ee24f1a145
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,8 @@ void QWaylandXdgSurfaceV6::Toplevel::zxdg_toplevel_v6_configure(int32_t width, i
break;
}
}
qCDebug(lcQpaWayland) << "Received zxdg_toplevel_v6.configure with" << m_pending.size
<< "and" << m_pending.states;
}
void QWaylandXdgSurfaceV6::Toplevel::zxdg_toplevel_v6_close()

View File

@ -115,6 +115,8 @@ void QWaylandXdgSurface::Toplevel::xdg_toplevel_configure(int32_t width, int32_t
break;
}
}
qCDebug(lcQpaWayland) << "Received xdg_toplevel.configure with" << m_pending.size
<< "and" << m_pending.states;
}
void QWaylandXdgSurface::Toplevel::xdg_toplevel_close()