From da419850510cc070009502687bd0b53c5470c818 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 12 Aug 2022 10:37:47 +0300 Subject: [PATCH] wayland: Use already_applied error in kde-output-management-v2 --- src/wayland/outputconfiguration_v2_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/outputconfiguration_v2_interface.cpp b/src/wayland/outputconfiguration_v2_interface.cpp index 0423d01155..dbe2021bb1 100644 --- a/src/wayland/outputconfiguration_v2_interface.cpp +++ b/src/wayland/outputconfiguration_v2_interface.cpp @@ -109,7 +109,7 @@ void OutputConfigurationV2Interface::kde_output_configuration_v2_scale(Resource void OutputConfigurationV2Interface::kde_output_configuration_v2_apply(Resource *resource) { if (applied) { - wl_resource_post_error(resource->handle, 0, "an output configuration can be applied only once"); + wl_resource_post_error(resource->handle, error_already_applied, "an output configuration can be applied only once"); return; }