diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2021-01-07 12:04:32 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-07 12:12:08 +0100 |
commit | 87e216b7400f33b3aa98fc12c9f8f460bb98e686 (patch) | |
tree | 76c9605112a3fbece2fc7f6261e43c05c3284e60 | |
parent | 07d75c99dba871db1ab28e70840ab55010c3314c (diff) |
layer shell: advertise version 3
This should have been done in 45c0877 but was overlooked unfortunately.
-rw-r--r-- | types/wlr_layer_shell_v1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c index bc681117..4914b9b1 100644 --- a/types/wlr_layer_shell_v1.c +++ b/types/wlr_layer_shell_v1.c @@ -11,6 +11,8 @@ #include "util/signal.h" #include "wlr-layer-shell-unstable-v1-protocol.h" +#define LAYER_SHELL_VERSION 3 + static void resource_handle_destroy(struct wl_client *client, struct wl_resource *resource) { wl_resource_destroy(resource); @@ -498,7 +500,8 @@ struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display) } struct wl_global *global = wl_global_create(display, - &zwlr_layer_shell_v1_interface, 2, layer_shell, layer_shell_bind); + &zwlr_layer_shell_v1_interface, LAYER_SHELL_VERSION, + layer_shell, layer_shell_bind); if (!global) { free(layer_shell); return NULL; |