From cad6e632961c352f108233af039940387feffb9a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 2 May 2023 11:35:28 +0200 Subject: libdecor: update with upstream source code as of 2023-may-2 This will allow to create narrow decorated windows without crash. --- libdecor/src/libdecor-fallback.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libdecor/src/libdecor-fallback.c') diff --git a/libdecor/src/libdecor-fallback.c b/libdecor/src/libdecor-fallback.c index 7f5f2fddc..ea0d35b03 100644 --- a/libdecor/src/libdecor-fallback.c +++ b/libdecor/src/libdecor-fallback.c @@ -150,7 +150,14 @@ libdecor_plugin_fallback_frame_get_border_size(struct libdecor_plugin *plugin, int *top, int *bottom) { - *left = *right = *top = *bottom = 0; + if (left) + *left = 0; + if (right) + *right = 0; + if (top) + *top = 0; + if (bottom) + *bottom = 0; return true; } -- cgit v1.2.3