aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-29 13:34:30 +0200
committerSimon Ser <contact@emersion.fr>2021-06-29 13:34:30 +0200
commitddc98bf5935e57df028269fabbb588767710a184 (patch)
tree83ad3a59a46739f2095d68f3127fe6891ec77d65
parent634a20d89ca95c3d1cc4c7a613835190a48a4df3 (diff)
surface: remove SURFACE_VERSION
surface_create is now private, so no need to worry about the version being too high anymore.
-rw-r--r--types/wlr_surface.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index 54a81489..8f863733 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -15,7 +15,6 @@
#include "util/time.h"
#define CALLBACK_VERSION 1
-#define SURFACE_VERSION 4
#define SUBSURFACE_VERSION 1
static int min(int fst, int snd) {
@@ -722,8 +721,6 @@ static void surface_handle_renderer_destroy(struct wl_listener *listener,
struct wlr_surface *surface_create(struct wl_client *client,
uint32_t version, uint32_t id, struct wlr_renderer *renderer) {
- assert(version <= SURFACE_VERSION);
-
struct wlr_surface *surface = calloc(1, sizeof(struct wlr_surface));
if (!surface) {
wl_client_post_no_memory(client);