summaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-03 18:08:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-03 18:08:20 +1000
commitc17f0870ef1620e73b18f0b0ce8303c94027d19b (patch)
treeeb00ad1385d5632494b15e19a9c3afe9b16a8789 /sway/input
parentMerge pull request #2408 from ianyfan/exit-nag (diff)
downloadsway-c17f0870ef1620e73b18f0b0ce8303c94027d19b.tar.gz
sway-c17f0870ef1620e73b18f0b0ce8303c94027d19b.tar.zst
sway-c17f0870ef1620e73b18f0b0ce8303c94027d19b.zip
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.
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index c2fc4e9e..80b4f9dc 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -99,7 +99,7 @@ static struct sway_container *container_at_coords(
99 return ws; 99 return ws;
100 } 100 }
101 if (ws->sway_workspace->fullscreen) { 101 if (ws->sway_workspace->fullscreen) {
102 return container_at_view(ws->sway_workspace->fullscreen, lx, ly, 102 return tiling_container_at(ws->sway_workspace->fullscreen, lx, ly,
103 surface, sx, sy); 103 surface, sx, sy);
104 } 104 }
105 if ((*surface = layer_surface_at(output, 105 if ((*surface = layer_surface_at(output,