|
|
@ -79,8 +79,6 @@ struct display { |
|
|
|
struct xkb_desc *xkb; |
|
|
|
struct xkb_desc *xkb; |
|
|
|
cairo_surface_t **pointer_surfaces; |
|
|
|
cairo_surface_t **pointer_surfaces; |
|
|
|
|
|
|
|
|
|
|
|
display_global_handler_t global_handler; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC image_target_texture_2d; |
|
|
|
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC image_target_texture_2d; |
|
|
|
PFNEGLCREATEIMAGEKHRPROC create_image; |
|
|
|
PFNEGLCREATEIMAGEKHRPROC create_image; |
|
|
|
PFNEGLDESTROYIMAGEKHRPROC destroy_image; |
|
|
|
PFNEGLDESTROYIMAGEKHRPROC destroy_image; |
|
|
@ -1786,8 +1784,6 @@ display_handle_global(struct wl_display *display, uint32_t id, |
|
|
|
d->shm = wl_display_bind(display, id, &wl_shm_interface); |
|
|
|
d->shm = wl_display_bind(display, id, &wl_shm_interface); |
|
|
|
} else if (strcmp(interface, "wl_selection_offer") == 0) { |
|
|
|
} else if (strcmp(interface, "wl_selection_offer") == 0) { |
|
|
|
add_selection_offer(d, id); |
|
|
|
add_selection_offer(d, id); |
|
|
|
} else if (d->global_handler) { |
|
|
|
|
|
|
|
d->global_handler(d, interface, id, version); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1899,8 +1895,7 @@ init_egl(struct display *d) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
struct display * |
|
|
|
struct display * |
|
|
|
display_create(int *argc, char **argv[], const GOptionEntry *option_entries, |
|
|
|
display_create(int *argc, char **argv[], const GOptionEntry *option_entries) |
|
|
|
display_global_handler_t handler) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
struct display *d; |
|
|
|
struct display *d; |
|
|
|
GOptionContext *context; |
|
|
|
GOptionContext *context; |
|
|
@ -1933,8 +1928,6 @@ display_create(int *argc, char **argv[], const GOptionEntry *option_entries, |
|
|
|
|
|
|
|
|
|
|
|
memset(d, 0, sizeof *d); |
|
|
|
memset(d, 0, sizeof *d); |
|
|
|
|
|
|
|
|
|
|
|
d->global_handler = handler; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
d->display = wl_display_connect(NULL); |
|
|
|
d->display = wl_display_connect(NULL); |
|
|
|
if (d->display == NULL) { |
|
|
|
if (d->display == NULL) { |
|
|
|
fprintf(stderr, "failed to create display: %m\n"); |
|
|
|
fprintf(stderr, "failed to create display: %m\n"); |
|
|
|