Merge branch 'master' into feature/data-device-selection

This commit is contained in:
Tony Crisci 2017-10-18 15:43:13 -04:00
commit 39308cb868
2 changed files with 9 additions and 5 deletions

View file

@ -361,7 +361,9 @@ void wlr_output_swap_buffers(struct wlr_output *output) {
renderer = output->cursor.surface->renderer;
}
if (texture && renderer) {
// We check texture->valid because some clients set a cursor surface
// with a NULL buffer to hide it
if (renderer && texture && texture->valid) {
float matrix[16];
wlr_texture_get_matrix(texture, &matrix, &output->transform_matrix,
output->cursor.x, output->cursor.y);