mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
WIP
This commit is contained in:
parent
b998b543f9
commit
1cb7146a2e
@ -47,7 +47,7 @@ option('native_backend',
|
|||||||
|
|
||||||
option('remote_desktop',
|
option('remote_desktop',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true,
|
value: false,
|
||||||
description: 'Enable remote desktop and screen cast support'
|
description: 'Enable remote desktop and screen cast support'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -58,16 +58,20 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
|
|||||||
MetaWaylandSurface *surface =
|
MetaWaylandSurface *surface =
|
||||||
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (cursor_surface));
|
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (cursor_surface));
|
||||||
MetaCursorSprite *cursor_sprite = META_CURSOR_SPRITE (priv->cursor_sprite);
|
MetaCursorSprite *cursor_sprite = META_CURSOR_SPRITE (priv->cursor_sprite);
|
||||||
CoglTexture *texture;
|
MetaMultiTexture *texture;
|
||||||
|
|
||||||
if (!priv->cursor_renderer)
|
if (!priv->cursor_renderer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
texture = meta_wayland_surface_get_texture (surface);
|
texture = meta_wayland_surface_get_texture (surface);
|
||||||
|
|
||||||
if (texture)
|
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,
|
meta_cursor_sprite_set_texture (cursor_sprite,
|
||||||
texture,
|
meta_multi_texture_get_plane (texture, 0),
|
||||||
priv->hot_x * surface->scale,
|
priv->hot_x * surface->scale,
|
||||||
priv->hot_y * surface->scale);
|
priv->hot_y * surface->scale);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user