summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-pointer.c')
-rw-r--r--src/wayland/meta-wayland-pointer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index d000ccfd8..314adec27 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -1369,7 +1369,8 @@ pointer_can_grab_surface (MetaWaylandPointer *pointer,
if (pointer->focus_surface == surface)
return TRUE;
- META_WAYLAND_SURFACE_FOREACH_SUBSURFACE (surface, subsurface)
+ META_WAYLAND_SURFACE_FOREACH_SUBSURFACE (&surface->output_state,
+ subsurface)
{
if (pointer_can_grab_surface (pointer, subsurface))
return TRUE;