aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/layer_shell.c
diff options
context:
space:
mode:
authorLibravatar Manuel Stoeckl <code@mstoeckl.com>2021-01-29 21:43:07 -0500
committerLibravatar Tudor Brindus <me@tbrindus.ca>2021-01-30 02:28:39 -0500
commitf8c6fc1944304ede26fc2f6fb7020535bf4c6cce (patch)
tree4a22686139ca40660d971e4cb3bbed4726020f9e /sway/desktop/layer_shell.c
parentdesktop/output: Disable head if mode is NULL (diff)
downloadsway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.tar.gz
sway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.tar.zst
sway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.zip
desktop/layer_shell: Fix allocation type mismatch
Diffstat (limited to 'sway/desktop/layer_shell.c')
-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(
429 struct wlr_subsurface *wlr_subsurface, 429 struct wlr_subsurface *wlr_subsurface,
430 struct sway_layer_surface *layer_surface) { 430 struct sway_layer_surface *layer_surface) {
431 struct sway_layer_subsurface *subsurface = 431 struct sway_layer_subsurface *subsurface =
432 calloc(1, sizeof(struct sway_layer_surface)); 432 calloc(1, sizeof(struct sway_layer_subsurface));
433 if (subsurface == NULL) { 433 if (subsurface == NULL) {
434 return NULL; 434 return NULL;
435 } 435 }