[mutter/wip/tablet-protocol: 49/63] backend: Realize cursor on default MetaCursorRenderer paths



commit 7abd33866bf401c81d0fe24bf2f74924d69aa5fa
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Oct 22 14:43:46 2015 +0200

    backend: Realize cursor on default MetaCursorRenderer paths
    
    The cursor is realized on x11/native subclasses, but not if a base
    MetaCursorRenderer is created.

 src/backends/meta-cursor-renderer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c
index a76241b..bed45d4 100644
--- a/src/backends/meta-cursor-renderer.c
+++ b/src/backends/meta-cursor-renderer.c
@@ -76,6 +76,9 @@ static gboolean
 meta_cursor_renderer_real_update_cursor (MetaCursorRenderer *renderer,
                                          MetaCursorSprite   *cursor_sprite)
 {
+  if (cursor_sprite)
+    meta_cursor_sprite_realize_texture (cursor_sprite);
+
   return FALSE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]