diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-01-29 21:43:07 -0500 |
---|---|---|
committer | Tudor Brindus <me@tbrindus.ca> | 2021-01-30 02:28:39 -0500 |
commit | f8c6fc1944304ede26fc2f6fb7020535bf4c6cce (patch) | |
tree | 4a22686139ca40660d971e4cb3bbed4726020f9e | |
parent | desktop/output: Disable head if mode is NULL (diff) | |
download | sway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.tar.gz sway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.tar.zst sway-f8c6fc1944304ede26fc2f6fb7020535bf4c6cce.zip |
desktop/layer_shell: Fix allocation type mismatch
-rw-r--r-- | sway/desktop/layer_shell.c | 2 |
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 | } |