[mutter/wayland] cursor-tracker: Shadowing is bad, don't do it



commit a7ea2cd36576a6bb157fced75c69922760d5fd12
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 31 14:16:20 2014 -0400

    cursor-tracker: Shadowing is bad, don't do it

 src/core/meta-cursor-tracker.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/core/meta-cursor-tracker.c b/src/core/meta-cursor-tracker.c
index 1faaf1b..cdf389f 100644
--- a/src/core/meta-cursor-tracker.c
+++ b/src/core/meta-cursor-tracker.c
@@ -951,12 +951,10 @@ meta_cursor_tracker_queue_redraw (MetaCursorTracker *tracker)
 
   if (tracker->previous_is_valid)
     {
-      cairo_rectangle_int_t clip = {
-        .x = tracker->previous_rect.x,
-        .y = tracker->previous_rect.y,
-        .width = tracker->previous_rect.width,
-        .height = tracker->previous_rect.height
-      };
+      clip.x = tracker->previous_rect.x;
+      clip.y = tracker->previous_rect.y;
+      clip.width = tracker->previous_rect.width;
+      clip.height = tracker->previous_rect.height;
       clutter_actor_queue_redraw_with_clip (stage, &clip);
       tracker->previous_is_valid = FALSE;
     }


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