diff options
author | emersion <contact@emersion.fr> | 2018-03-31 10:39:05 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-31 10:39:05 -0400 |
commit | a44a71c116b3bc7fcc80628d3213e2612b701f6c (patch) | |
tree | c61bd0d6d59d31fedc4dc4f5dee161a71141153f /sway/input/cursor.c | |
parent | Fix #1104 (diff) | |
download | sway-a44a71c116b3bc7fcc80628d3213e2612b701f6c.tar.gz sway-a44a71c116b3bc7fcc80628d3213e2612b701f6c.tar.zst sway-a44a71c116b3bc7fcc80628d3213e2612b701f6c.zip |
Make it clear that unmanaged views don't have a container
view->swayc is NULL anyway.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 2 |
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, | |||
63 | *surface = xsurface->surface; | 63 | *surface = xsurface->surface; |
64 | *sx = cursor->x - box.x; | 64 | *sx = cursor->x - box.x; |
65 | *sy = cursor->y - box.y; | 65 | *sy = cursor->y - box.y; |
66 | return view->swayc; | 66 | return NULL; |
67 | } | 67 | } |
68 | } | 68 | } |
69 | } | 69 | } |