summaryrefslogtreecommitdiff
path: root/src/compositor/extensions/qwaylandxdgshellv5.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-07 13:14:28 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-14 08:16:02 +0000
commit0d568553ee849f9273bbd3675f4ceae200b3acd9 (patch)
tree1b385a84aa2958a3e91128794cfc0654ca918659 /src/compositor/extensions/qwaylandxdgshellv5.cpp
parent88851b6de433ab25047166bf4708e99e111b7af2 (diff)
downloadqtwayland-0d568553ee849f9273bbd3675f4ceae200b3acd9.tar.gz
Compositor: Use customized version of generated files for xdg-shell-v5
Checking in wayland-scanner and qtwaylandscanner generated files with renamed symbols to avoid conflicts with xdg-shell stable. Task-number: QTBUG-66784 Change-Id: I1b1a055d3be12bfa7d16e7bb7209e96497cbf28c Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshellv5.cpp')
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv5.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv5.cpp b/src/compositor/extensions/qwaylandxdgshellv5.cpp
index 42433518..a6e88aab 100644
--- a/src/compositor/extensions/qwaylandxdgshellv5.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellv5.cpp
@@ -148,7 +148,7 @@ void QWaylandXdgShellV5Private::xdg_shell_get_xdg_surface(Resource *resource, ui
if (!surface->setRole(QWaylandXdgSurfaceV5::role(), resource->handle, XDG_SHELL_ERROR_ROLE))
return;
- QWaylandResource xdgSurfaceResource(wl_resource_create(resource->client(), &xdg_surface_interface,
+ QWaylandResource xdgSurfaceResource(wl_resource_create(resource->client(), &xdg_surface_v5_interface,
wl_resource_get_version(resource->handle), id));
emit q->xdgSurfaceRequested(surface, xdgSurfaceResource);
@@ -166,10 +166,10 @@ void QWaylandXdgShellV5Private::xdg_shell_get_xdg_surface(Resource *resource, ui
void QWaylandXdgShellV5Private::xdg_shell_use_unstable_version(Resource *resource, int32_t version)
{
- if (xdg_shell::version_current != version) {
+ if (xdg_shell_v5::version_current != version) {
wl_resource_post_error(resource->handle, WL_DISPLAY_ERROR_INVALID_OBJECT,
"incompatible version, server is %d, but client wants %d",
- xdg_shell::version_current, version);
+ xdg_shell_v5::version_current, version);
}
}
@@ -193,7 +193,7 @@ void QWaylandXdgShellV5Private::xdg_shell_get_xdg_popup(Resource *resource, uint
return;
}
- QWaylandResource xdgPopupResource (wl_resource_create(resource->client(), &xdg_popup_interface,
+ QWaylandResource xdgPopupResource (wl_resource_create(resource->client(), &xdg_popup_v5_interface,
wl_resource_get_version(resource->handle), id));
QWaylandSeat *seat = QWaylandSeat::fromSeatResource(seatResource);
QPoint position(x, y);