summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-01-29 21:43:07 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-01-29 21:43:07 -0500
commitb731f5f1baf74b6696050613ca4d2e4697dcaa7f (patch)
tree4a22686139ca40660d971e4cb3bbed4726020f9e
parent09d408f065d1c7284b6875088efa69d89b149fc0 (diff)
desktop/layer_shell: Fix allocation type mismatch
-rw-r--r--sway/desktop/layer_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index d4ca4fb4..c5b6d19c 100644
--- 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;
}