This commit is contained in:
Niels De Graef 2020-03-30 16:48:07 +02:00
parent b998b543f9
commit 1cb7146a2e
2 changed files with 7 additions and 3 deletions

View File

@ -47,7 +47,7 @@ option('native_backend',
option('remote_desktop',
type: 'boolean',
value: true,
value: false,
description: 'Enable remote desktop and screen cast support'
)

View File

@ -58,16 +58,20 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
MetaWaylandSurface *surface =
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (cursor_surface));
MetaCursorSprite *cursor_sprite = META_CURSOR_SPRITE (priv->cursor_sprite);
CoglTexture *texture;
MetaMultiTexture *texture;
if (!priv->cursor_renderer)
return;
texture = meta_wayland_surface_get_texture (surface);
if (texture)
{
/* We don't support complex textures for cursors */
g_return_if_fail (meta_multi_texture_is_simple (texture));
meta_cursor_sprite_set_texture (cursor_sprite,
texture,
meta_multi_texture_get_plane (texture, 0),
priv->hot_x * surface->scale,
priv->hot_y * surface->scale);
}