mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Fix render errors with gnome-terminal
This commit is contained in:
parent
8c5a110d4c
commit
a7d7659a93
1 changed files with 3 additions and 1 deletions
|
@ -361,7 +361,9 @@ void wlr_output_swap_buffers(struct wlr_output *output) {
|
||||||
renderer = output->cursor.surface->renderer;
|
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];
|
float matrix[16];
|
||||||
wlr_texture_get_matrix(texture, &matrix, &output->transform_matrix,
|
wlr_texture_get_matrix(texture, &matrix, &output->transform_matrix,
|
||||||
output->cursor.x, output->cursor.y);
|
output->cursor.x, output->cursor.y);
|
||||||
|
|
Loading…
Reference in a new issue