Commit 0265c55f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Post invalid_positioner error to the right resource

The invalid_positioner error is defined for the xdg_wm_base interface,
not xdg_surface.
parent 9c944c81
......@@ -216,7 +216,9 @@ void XdgSurfaceInterfacePrivate::xdg_surface_get_popup(Resource *resource, uint3
XdgPositioner positioner = XdgPositioner::get(positionerResource);
if (!positioner.isComplete()) {
wl_resource_post_error(resource->handle, QtWaylandServer::xdg_wm_base::error_invalid_positioner,
auto shellPrivate = XdgShellInterfacePrivate::get(shell);
wl_resource_post_error(shellPrivate->resourceForXdgSurface(q)->handle,
QtWaylandServer::xdg_wm_base::error_invalid_positioner,
"xdg_positioner is incomplete");
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment