Skip to content

Commit

Permalink
Do not abort when interfaces are older than expected
Browse files Browse the repository at this point in the history
Instead, print a warning and let consumers abort if the missing interface is a fatal problem.
  • Loading branch information
nt8r committed Aug 16, 2023
1 parent c9964a5 commit be07cbd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/types/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@

#define BIND(interface_name, known_version) \
if (strcmp(interface, #interface_name) == 0) { \
self->interface_name = wl_registry_bind( \
wl_registry, \
name, \
&interface_name ## _interface, \
known_version \
); \
if (version >= known_version) { \
self->interface_name = wl_registry_bind( \
wl_registry, \
name, \
&interface_name ## _interface, \
known_version \
); \
} \
}

static void wl_registry_global_handler(
Expand Down

0 comments on commit be07cbd

Please sign in to comment.