commit a77e11d

Michael Forney  ·  2014-07-13 02:08:59 +0000 UTC
parent e44829c
compositor: Remove redundant setting of x and y in handle_motion
1 files changed,  +1, -4
+1, -4
 1@@ -741,13 +741,10 @@ bool handle_motion(struct pointer_handler * handler, uint32_t time,
 2 {
 3     struct compositor_view * view;
 4     bool found = false;
 5-    int32_t x, y;
 6+    int32_t x = wl_fixed_to_int(fx), y = wl_fixed_to_int(fy);
 7 
 8     wl_list_for_each(view, &compositor.views, link)
 9     {
10-        x = wl_fixed_to_int(fx);
11-        y = wl_fixed_to_int(fy);
12-
13         if (swc_rectangle_contains_point(&view->base.geometry, x, y)
14             && pixman_region32_contains_point(&view->surface->state.input,
15                                               x - view->base.geometry.x,