commit e72f86784c6e2750668b3361269ded4d08d94ead
parent 3eda76de4869984eed7b9476b9e011b6981ecbe5
Author: minus <minus@mnus.de>
Date: Thu, 2 Aug 2018 23:19:01 +0200
Fix crash on mouse motion on fullscreen container
container_at expects a workspace, not the fullscreened container.
Fixes #2409
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
@@ -99,8 +99,7 @@ static struct sway_container *container_at_coords(
return ws;
}
if (ws->sway_workspace->fullscreen) {
- return container_at(ws->sway_workspace->fullscreen, lx, ly,
- surface, sx, sy);
+ return container_at(ws, lx, ly, surface, sx, sy);
}
if ((*surface = layer_surface_at(output,
&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP],