[mutter] cursor-renderer-native: Don't move the cursor when we don't need to



commit fb9f22c02fcd8abfcec4858dfde855567fafffc1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat May 17 10:58:49 2014 -0400

    cursor-renderer-native: Don't move the cursor when we don't need to

 src/backends/native/meta-cursor-renderer-native.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/native/meta-cursor-renderer-native.c 
b/src/backends/native/meta-cursor-renderer-native.c
index ad823c6..873be30 100644
--- a/src/backends/native/meta-cursor-renderer-native.c
+++ b/src/backends/native/meta-cursor-renderer-native.c
@@ -120,7 +120,7 @@ update_hw_cursor (MetaCursorRendererNative *native,
 
       set_crtc_cursor (native, &crtcs[i], crtc_cursor, force);
 
-      if (cursor)
+      if (crtc_cursor)
         {
           drmModeMoveCursor (priv->drm_fd, crtcs[i].crtc_id,
                              cursor_rect->x - crtc_rect->x,


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