diff options
-rw-r--r-- | sway/tree/container.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 76a21c19..62dca487 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -455,6 +455,9 @@ struct sway_container *container_parent(struct sway_container *container, | |||
455 | static struct sway_container *container_at_view(struct sway_container *swayc, | 455 | static struct sway_container *container_at_view(struct sway_container *swayc, |
456 | double ox, double oy, | 456 | double ox, double oy, |
457 | struct wlr_surface **surface, double *sx, double *sy) { | 457 | struct wlr_surface **surface, double *sx, double *sy) { |
458 | if (!sway_assert(swayc->type == C_VIEW, "Expected a view")) { | ||
459 | return NULL; | ||
460 | } | ||
458 | struct sway_view *sview = swayc->sway_view; | 461 | struct sway_view *sview = swayc->sway_view; |
459 | double view_sx = ox - sview->x; | 462 | double view_sx = ox - sview->x; |
460 | double view_sy = oy - sview->y; | 463 | double view_sy = oy - sview->y; |