diff options
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index a19f0752..5ed4f1f7 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -59,9 +59,8 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor, | |||
59 | // find the output the cursor is on | 59 | // find the output the cursor is on |
60 | struct wlr_output_layout *output_layout = | 60 | struct wlr_output_layout *output_layout = |
61 | root_container.sway_root->output_layout; | 61 | root_container.sway_root->output_layout; |
62 | struct wlr_output *wlr_output = | 62 | struct wlr_output *wlr_output = wlr_output_layout_output_at(output_layout, |
63 | wlr_output_layout_output_at(output_layout, | 63 | cursor->cursor->x, cursor->cursor->y); |
64 | cursor->cursor->x, cursor->cursor->y); | ||
65 | if (wlr_output == NULL) { | 64 | if (wlr_output == NULL) { |
66 | return NULL; | 65 | return NULL; |
67 | } | 66 | } |