|
|
@ -442,12 +442,21 @@ static const struct wl_registry_listener registry_listener = { |
|
|
|
handle_global |
|
|
|
handle_global |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
|
|
|
log_handler(const char *fmt, va_list args) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
fprintf(stderr, "libwayland: "); |
|
|
|
|
|
|
|
vfprintf(stderr, fmt, args); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
struct client * |
|
|
|
struct client * |
|
|
|
client_create(int x, int y, int width, int height) |
|
|
|
client_create(int x, int y, int width, int height) |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct client *client; |
|
|
|
struct client *client; |
|
|
|
struct surface *surface; |
|
|
|
struct surface *surface; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wl_log_set_handler_client(log_handler); |
|
|
|
|
|
|
|
|
|
|
|
/* connect to display */ |
|
|
|
/* connect to display */ |
|
|
|
client = calloc(1, sizeof *client); |
|
|
|
client = calloc(1, sizeof *client); |
|
|
|
client->wl_display = wl_display_connect(NULL); |
|
|
|
client->wl_display = wl_display_connect(NULL); |
|
|
|