commit f8c6fc1944304ede26fc2f6fb7020535bf4c6cce
parent 4d43f1dd996e61e38d89adf0ad1435dac32e38a5
Author: Manuel Stoeckl <code@mstoeckl.com>
Date: Fri, 29 Jan 2021 21:43:07 -0500
desktop/layer_shell: Fix allocation type mismatch
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
@@ -429,7 +429,7 @@ static struct sway_layer_subsurface *create_subsurface(
struct wlr_subsurface *wlr_subsurface,
struct sway_layer_surface *layer_surface) {
struct sway_layer_subsurface *subsurface =
- calloc(1, sizeof(struct sway_layer_surface));
+ calloc(1, sizeof(struct sway_layer_subsurface));
if (subsurface == NULL) {
return NULL;
}