aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-16 09:27:26 -0500
committerGitHub <noreply@github.com>2018-02-16 09:27:26 -0500
commit8c1cc45c7db9be4b49ffb27541e908f492fd59ba (patch)
treed95947d79b2a55b87c76d8a31781f6d9402d5496 /xwayland
parent4ded535354229022dda66c474b097d9e9234effa (diff)
parent392d54a35d34ff08baaffdd50b9d11072481706e (diff)
Merge pull request #629 from emersion/safe-wl-resource-get-user-data
Wrap wl_resource_get_user_data into safer helper functions
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 10bc2e30..94dfdaab 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -742,7 +742,7 @@ static void xwm_handle_surface_id_message(struct wlr_xwm *xwm,
struct wl_resource *resource =
wl_client_get_object(xwm->xwayland->client, id);
if (resource) {
- struct wlr_surface *surface = wl_resource_get_user_data(resource);
+ struct wlr_surface *surface = wlr_surface_from_resource(resource);
xsurface->surface_id = 0;
xwm_map_shell_surface(xwm, xsurface, surface);
} else {