This commit is contained in:
nearffxx 2018-09-10 09:58:53 +00:00 committed by GitHub
commit 86b58bb5f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,6 +303,9 @@ static struct sway_container *floating_container_at(double lx, double ly,
struct sway_container *tiling_container_at(struct sway_node *parent, struct sway_container *tiling_container_at(struct sway_node *parent,
double lx, double ly, double lx, double ly,
struct wlr_surface **surface, double *sx, double *sy) { struct wlr_surface **surface, double *sx, double *sy) {
if (parent == NULL) {
return NULL;
}
if (node_is_view(parent)) { if (node_is_view(parent)) {
surface_at_view(parent->sway_container, lx, ly, surface, sx, sy); surface_at_view(parent->sway_container, lx, ly, surface, sx, sy);
return parent->sway_container; return parent->sway_container;