shell: Correct error message when we already have an xdg surface

It was referencing get_shell_surface, which is absolutely wrong.
This commit is contained in:
Jasper St. Pierre
2014-03-25 13:31:44 -04:00
committed by Kristian Høgsberg
parent e81a175fa1
commit fe9671e30e
+2 -2
View File
@@ -3413,7 +3413,7 @@ xdg_get_xdg_surface(struct wl_client *client,
if (get_shell_surface(surface)) { if (get_shell_surface(surface)) {
wl_resource_post_error(surface_resource, wl_resource_post_error(surface_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT, WL_DISPLAY_ERROR_INVALID_OBJECT,
"desktop_shell::get_shell_surface already requested"); "xdg_shell::get_xdg_surface already requested");
return; return;
} }
@@ -3507,7 +3507,7 @@ xdg_get_xdg_popup(struct wl_client *client,
if (get_shell_surface(surface)) { if (get_shell_surface(surface)) {
wl_resource_post_error(surface_resource, wl_resource_post_error(surface_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT, WL_DISPLAY_ERROR_INVALID_OBJECT,
"desktop_shell::get_shell_surface already requested"); "xdg_shell::get_xdg_popup already requested");
return; return;
} }