diff options
author | Orestis Floros <orestisflo@gmail.com> | 2022-11-13 10:48:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 10:48:26 +0100 |
commit | 60c3fedb7334cfc5c99bb0c729f13298c1cfce1c (patch) | |
tree | 7100385e25b05b7907c223e9a9e830f4000a0f2a | |
parent | 96614a2f32ae5f0a8f39e49d98a4d2183a379516 (diff) | |
download | i3-60c3fedb7334cfc5c99bb0c729f13298c1cfce1c.tar.gz i3-60c3fedb7334cfc5c99bb0c729f13298c1cfce1c.zip |
window_update_motif_hints: Do not assert that the property will always be there (#5281)
Fixes #5280
-rw-r--r-- | src/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 36c44b37..eeff0741 100644 --- a/src/window.c +++ b/src/window.c @@ -459,7 +459,9 @@ static border_style_t border_style_from_motif_value(uint32_t value) { * */ bool window_update_motif_hints(i3Window *win, xcb_get_property_reply_t *prop, border_style_t *motif_border_style) { - assert(prop != NULL); + if (prop == NULL) { + return false; + } assert(motif_border_style != NULL); if (xcb_get_property_value_length(prop) == 0) { |