Remove outdated TODOs, use wlr_surface_has_buffer

This commit is contained in:
emersion 2017-10-31 10:54:05 +01:00
parent 6a74a3586f
commit ae9a46fc9b
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 5 additions and 9 deletions

View file

@ -84,8 +84,6 @@ static void handle_output_add(struct output_state *ostate) {
example_config_configure_cursor(sample->config, cursor->cursor,
sample->compositor);
// TODO the cursor must be set depending on which surface it is
// displayed over which should happen in the compositor.
struct wlr_xcursor_image *image = sample->xcursor->images[0];
wlr_cursor_set_image(cursor->cursor, image->buffer, image->width,
image->width, image->height, image->hotspot_x, image->hotspot_y);