From 834551f6b7a83952af271a92efb591052c574b09 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 7 Apr 2021 18:19:43 +0300 Subject: [PATCH] Remove hard-coded zwlr_layer_shell_v1 interface name This makes code more neater. --- src/qwaylandlayershellintegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qwaylandlayershellintegration.cpp b/src/qwaylandlayershellintegration.cpp index 3c68f0d..87d7acd 100644 --- a/src/qwaylandlayershellintegration.cpp +++ b/src/qwaylandlayershellintegration.cpp @@ -35,7 +35,7 @@ void QWaylandLayerShellIntegration::registryLayer(void *data, struct wl_registry { QWaylandLayerShellIntegration *shell = static_cast(data); - if (interface == QStringLiteral("zwlr_layer_shell_v1")) + if (interface == zwlr_layer_shell_v1_interface.name) shell->m_layerShell = new QWaylandLayerShell(new QtWayland::zwlr_layer_shell_v1(registry, id, version)); }