aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-31 10:39:05 -0400
committeremersion <contact@emersion.fr>2018-03-31 10:39:05 -0400
commita44a71c116b3bc7fcc80628d3213e2612b701f6c (patch)
treec61bd0d6d59d31fedc4dc4f5dee161a71141153f /sway
parent8aa195e3116d7dbc897da50d2795e4a638c0b184 (diff)
downloadsway-a44a71c116b3bc7fcc80628d3213e2612b701f6c.tar.xz
Make it clear that unmanaged views don't have a container
view->swayc is NULL anyway.
Diffstat (limited to 'sway')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 6b8522bf..b5ba5136 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -63,7 +63,7 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
*surface = xsurface->surface;
*sx = cursor->x - box.x;
*sy = cursor->y - box.y;
- return view->swayc;
+ return NULL;
}
}
}