wl_surface_attach(dnd_drag->drag_surface, buffer, 0, 0);
wl_surface_damage(dnd_drag->drag_surface, 0, 0,
dnd_drag->width, dnd_drag->height);
+ wl_surface_commit(dnd_drag->drag_surface);
}
static void
-dnd_drag->hotspot_x, -dnd_drag->hotspot_y);
wl_surface_damage(dnd_drag->drag_surface, 0, 0,
dnd_drag->width, dnd_drag->height);
+ wl_surface_commit(dnd_drag->drag_surface);
dnd->current_drag = dnd_drag;
window_schedule_redraw(dnd->window);
paint_pixels(window->shm_data, 20, window->width, window->height, time);
wl_surface_damage(window->surface,
20, 20, window->width - 40, window->height - 40);
+ wl_surface_commit(window->surface);
if (callback)
wl_callback_destroy(callback);
memset(touch->data, 64, width * height * 4);
wl_surface_attach(touch->surface, touch->buffer, 0, 0);
wl_surface_damage(touch->surface, 0, 0, width, height);
+ wl_surface_commit(touch->surface);
return touch;
}
wl_surface_damage(window->surface, 0, 0,
window->allocation.width,
window->allocation.height);
+ wl_surface_commit(window->surface);
window->server_allocation = window->allocation;
cairo_surface_destroy(window->cairo_surface);
window->cairo_surface = NULL;
wl_surface_attach(input->pointer_surface, buffer, 0, 0);
wl_surface_damage(input->pointer_surface, 0, 0,
image->width, image->height);
+ wl_surface_commit(input->pointer_surface);
}
static const struct wl_callback_listener pointer_surface_listener;