aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Scott Leggett <scott@sl.id.au>2018-05-28 02:35:24 +1000
committerLibravatar Scott Leggett <scott@sl.id.au>2018-05-28 02:35:24 +1000
commit4d8120ccf3097fd919327707eeccc56a329afbb9 (patch)
tree08849a58c32f4bb22ca6be5b0726b0d8b05a1c06 /sway/input/cursor.c
parentAvoid assert on container type. (diff)
downloadsway-4d8120ccf3097fd919327707eeccc56a329afbb9.tar.gz
sway-4d8120ccf3097fd919327707eeccc56a329afbb9.tar.zst
sway-4d8120ccf3097fd919327707eeccc56a329afbb9.zip
Improve comment.
Diffstat (limited to 'sway/input/cursor.c')
-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 a0afd78a..6751931d 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -145,7 +145,7 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
145 struct wlr_surface *surface = NULL; 145 struct wlr_surface *surface = NULL;
146 double sx, sy; 146 double sx, sy;
147 147
148 // Find the container the pointer was previously over 148 // Find the container beneath the pointer's previous position
149 struct sway_container *prev_c = container_at_coords(cursor->seat, 149 struct sway_container *prev_c = container_at_coords(cursor->seat,
150 cursor->previous.x, cursor->previous.y, &surface, &sx, &sy); 150 cursor->previous.x, cursor->previous.y, &surface, &sx, &sy);
151 // Update the stored previous position 151 // Update the stored previous position