summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-08-02 23:19:01 +0200
committerFurkan Sahin <furkan-dev@proton.me>2018-08-02 23:19:01 +0200
commit293f515cf08e0b58a32bee1effe73fe8034f3632 (patch)
tree14d2ec9a20a1b0f20852cb3e6970324c281d15f6
parent55cb8061cfa3d9dc282f929c2d69a4a72f1270a5 (diff)
Fix crash on mouse motion on fullscreen container
container_at expects a workspace, not the fullscreened container. Fixes #2409
-rw-r--r--sway/input/cursor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 79f6ec46..99858d93 100644
--- 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],