From c17f0870ef1620e73b18f0b0ce8303c94027d19b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 3 Aug 2018 18:08:20 +1000 Subject: Fix crash when moving cursor over a fullscreen split container Calling container_at_view fails an assertion if the container isn't a view. Calling tiling_container_at works correctly, as that function checks if the container is a view and calls container_at_view if so. --- include/sway/tree/container.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index c3942e9e..44ff9f7d 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -234,9 +234,9 @@ struct sway_container *container_at(struct sway_container *workspace, double lx, double ly, struct wlr_surface **surface, double *sx, double *sy); -struct sway_container *container_at_view(struct sway_container *view, - double lx, double ly, struct wlr_surface **surface, - double *sx, double *sy); +struct sway_container *tiling_container_at( + struct sway_container *con, double lx, double ly, + struct wlr_surface **surface, double *sx, double *sy); /** * Apply the function for each descendant of the container breadth first. -- cgit v1.2.3-54-g00ecf