diff options
-rw-r--r-- | types/wlr_server_decoration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_server_decoration.c b/types/wlr_server_decoration.c index 425230ec..3cf19c2f 100644 --- a/types/wlr_server_decoration.c +++ b/types/wlr_server_decoration.c @@ -24,7 +24,7 @@ static void server_decoration_handle_request_mode(struct wl_client *client, struct wl_resource *resource, uint32_t mode) { struct wlr_server_decoration *decoration = decoration_from_resource(resource); - if (decoration->mode == mode) { + if (decoration == NULL || decoration->mode == mode) { return; } decoration->mode = mode; |