srandom(tv.tv_usec);
d = display_create(&argc, &argv, option_entries);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
display_set_drag_offer_handler(d, drag_offer_handler);
struct display *d;
d = display_create(&argc, &argv, NULL);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
flower.x = 512;
flower.y = 384;
struct gears *gears;
d = display_create(&argc, &argv, NULL);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
gears = gears_create(d);
display_run(d);
int i;
d = display_create(&argc, &argv, option_entries);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
for (i = 1; i < argc; i++) {
struct image *image;
int size;
d = display_create(&argc, &argv, NULL);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
smoke.x = 200;
smoke.y = 200;
struct terminal *terminal;
d = display_create(&argc, &argv, option_entries);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
terminal = terminal_create(d, option_fullscreen);
if (terminal_run(terminal, "/bin/bash"))
int i;
d = display_create(&argc, &argv, option_entries);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
for (i = 1; i < argc; i++) {
struct view *view;