mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
WIP
This commit is contained in:
parent
b998b543f9
commit
1cb7146a2e
@ -47,7 +47,7 @@ option('native_backend',
|
||||
|
||||
option('remote_desktop',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
value: false,
|
||||
description: 'Enable remote desktop and screen cast support'
|
||||
)
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user