diff options
-rw-r--r-- | sway/input/cursor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 449aa430..9d83008f 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -1322,6 +1322,10 @@ static void warp_to_constraint_cursor_hint(struct sway_cursor *cursor) { | |||
1322 | double sy = constraint->current.cursor_hint.y; | 1322 | double sy = constraint->current.cursor_hint.y; |
1323 | 1323 | ||
1324 | struct sway_view *view = view_from_wlr_surface(constraint->surface); | 1324 | struct sway_view *view = view_from_wlr_surface(constraint->surface); |
1325 | if (!view) { | ||
1326 | return; | ||
1327 | } | ||
1328 | |||
1325 | struct sway_container *con = view->container; | 1329 | struct sway_container *con = view->container; |
1326 | 1330 | ||
1327 | double lx = sx + con->pending.content_x - view->geometry.x; | 1331 | double lx = sx + con->pending.content_x - view->geometry.x; |