Lines Matching refs:d

140     struct display *d;  in va_put_surface()  local
148 d = wl_display_get_user_data(wl_drawable->display); in va_put_surface()
149 if (!d) in va_put_surface()
154 wl_display_flush(d->display); in va_put_surface()
169 wl_display_flush(d->display); in va_put_surface()
186 struct display * const d = data; in registry_handle_global() local
189 d->compositor = in registry_handle_global()
192 d->shell = wl_registry_bind(registry, id, &wl_shell_interface, 1); in registry_handle_global()
203 struct display *d; in open_display() local
205 d = calloc(1, sizeof *d); in open_display()
206 if (!d) in open_display()
209 d->display = wl_display_connect(NULL); in open_display()
210 if (!d->display) in open_display()
213 wl_display_set_user_data(d->display, d); in open_display()
214 d->registry = wl_display_get_registry(d->display); in open_display()
215 wl_registry_add_listener(d->registry, &registry_listener, d); in open_display()
216 d->event_fd = wl_display_get_fd(d->display); in open_display()
217 wl_display_dispatch(d->display); in open_display()
218 return d->display; in open_display()
224 struct display * const d = wl_display_get_user_data(win_display); in close_display() local
226 if (d->shell) { in close_display()
227 wl_shell_destroy(d->shell); in close_display()
228 d->shell = NULL; in close_display()
231 if (d->compositor) { in close_display()
232 wl_compositor_destroy(d->compositor); in close_display()
233 d->compositor = NULL; in close_display()
236 if (d->display) { in close_display()
237 wl_display_disconnect(d->display); in close_display()
238 d->display = NULL; in close_display()
240 free(d); in close_display()
247 struct display * const d = wl_display_get_user_data(display); in create_window() local
253 surface1 = wl_compositor_create_surface(d->compositor); in create_window()
254 shell_surface = wl_shell_get_shell_surface(d->shell, surface1); in create_window()
268 surface2 = wl_compositor_create_surface(d->compositor); in create_window()
269 shell_surface_2 = wl_shell_get_shell_surface(d->shell, surface2); in create_window()
292 struct display * const d = wl_display_get_user_data(display); in check_window_event() local
304 FD_SET(d->event_fd, &rfds); in check_window_event()
306 retval = select(d->event_fd + 1, &rfds, NULL, NULL, &tv); in check_window_event()
312 wl_display_dispatch(d->display); in check_window_event()