Better handling of hidden cursors in wayland backend, add TODOs

This commit is contained in:
emersion 2017-10-12 13:25:29 +02:00
parent 92daa790bb
commit 19860c03f7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 12 additions and 5 deletions

View file

@ -259,7 +259,9 @@ void wlr_output_set_cursor_surface(struct wlr_output *output,
wl_signal_add(&surface->events.commit, &output->cursor.surface_commit);
wl_signal_add(&surface->events.destroy,
&output->cursor.surface_destroy);
commit_cursor_surface(output, surface);
// TODO: doing it breaks GTK apps
// TODO: not doing it breaks weston-subsurfaces
//commit_cursor_surface(output, surface);
} else {
set_cursor(output, NULL, 0, 0, 0, hotspot_x, hotspot_y);
}

View file

@ -429,7 +429,8 @@ static void wlr_surface_commit_pending(struct wlr_surface *surface) {
// Release the buffer after calling commit, because some listeners
// might need it (e.g. for cursor surfaces)
wlr_surface_state_release_buffer(surface->current);
// TODO: breaks weston-subsurfaces
//wlr_surface_state_release_buffer(surface->current);
}
static bool wlr_subsurface_is_synchronized(struct wlr_subsurface *subsurface) {