summaryrefslogtreecommitdiff
path: root/libdecor/src/libdecor-fallback.c
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-05-02 11:35:28 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-05-02 11:35:28 +0200
commitcad6e632961c352f108233af039940387feffb9a (patch)
tree33d0fef574362efdd653155a4c8defdac1b7734a /libdecor/src/libdecor-fallback.c
parent0394a27074b8067bf22b586ab52f22d79f088f10 (diff)
libdecor: update with upstream source code as of 2023-may-2
This will allow to create narrow decorated windows without crash.
Diffstat (limited to 'libdecor/src/libdecor-fallback.c')
-rw-r--r--libdecor/src/libdecor-fallback.c9
1 files changed, 8 insertions, 1 deletions
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;
}