Skip to content
Commits on Source (5)
......@@ -1023,19 +1023,14 @@ touch_move_grab_motion(struct weston_touch_grab *grab,
{
struct weston_touch_move_grab *move = (struct weston_touch_move_grab *) grab;
struct shell_surface *shsurf = move->base.shsurf;
struct weston_surface *es;
struct weston_coord_global pos;
if (!shsurf || !shsurf->desktop_surface || !move->active)
return;
es = weston_desktop_surface_get_surface(shsurf->desktop_surface);
pos = weston_coord_global_add(grab->touch->grab_pos, move->delta);
pos.c = weston_coord_truncate(pos.c);
weston_view_set_position(shsurf->view, pos);
weston_compositor_schedule_repaint(es->compositor);
}
static void
......@@ -1156,7 +1151,6 @@ move_grab_motion(struct weston_pointer_grab *grab,
struct weston_move_grab *move = (struct weston_move_grab *) grab;
struct weston_pointer *pointer = grab->pointer;
struct shell_surface *shsurf = move->base.shsurf;
struct weston_surface *surface;
struct weston_coord_global pos;
int cx, cy;
......@@ -1164,14 +1158,10 @@ move_grab_motion(struct weston_pointer_grab *grab,
if (!shsurf || !shsurf->desktop_surface)
return;
surface = weston_desktop_surface_get_surface(shsurf->desktop_surface);
constrain_position(move, &cx, &cy);
pos.c = weston_coord(cx, cy);
weston_view_set_position(shsurf->view, pos);
weston_compositor_schedule_repaint(surface->compositor);
}
static void
......@@ -1289,18 +1279,15 @@ tablet_tool_move_grab_motion(struct weston_tablet_tool_grab *grab,
struct weston_tablet_tool_move_grab *move =
(struct weston_tablet_tool_move_grab *)grab;
struct shell_surface *shsurf = move->base.shsurf;
struct weston_surface *es;
weston_tablet_tool_cursor_move(grab->tool, pos);
if (!shsurf)
return;
es = weston_desktop_surface_get_surface(shsurf->desktop_surface);
pos.c.x += wl_fixed_to_double(move->dx);
pos.c.y += wl_fixed_to_double(move->dy);
weston_view_set_position(shsurf->view, pos);
weston_compositor_schedule_repaint(es->compositor);
}
static void
......@@ -3361,7 +3348,6 @@ set_tiled_orientation(struct weston_surface *focus,
weston_view_set_position(shsurf->view, pos);
weston_desktop_surface_set_size(shsurf->desktop_surface, width, height);
weston_desktop_surface_set_orientation(shsurf->desktop_surface, orientation);
weston_compositor_schedule_repaint(surface->compositor);
}
static void
......
......@@ -180,7 +180,6 @@ weston_view_animation_frame(struct weston_animation *base,
weston_spring_update(&animation->spring, time);
if (weston_spring_done(&animation->spring)) {
weston_view_schedule_repaint(animation->view);
weston_view_animation_destroy(animation);
return;
}
......
......@@ -1695,6 +1695,8 @@ weston_view_geometry_dirty_internal(struct weston_view *view)
weston_view_geometry_dirty_internal(child);
weston_view_dirty_paint_nodes(view);
weston_view_schedule_repaint(view);
}
WL_EXPORT void
......@@ -1950,7 +1952,6 @@ weston_view_set_mask(struct weston_view *view,
pixman_region32_init_rect(&view->geometry.scissor, x, y, width, height);
view->geometry.scissor_enabled = true;
weston_view_geometry_dirty(view);
weston_view_schedule_repaint(view);
}
/** Remove the clip mask from a view
......@@ -1966,7 +1967,6 @@ weston_view_set_mask_infinite(struct weston_view *view)
{
view->geometry.scissor_enabled = false;
weston_view_geometry_dirty(view);
weston_view_schedule_repaint(view);
}
/* Check if view should be displayed
......
......@@ -625,7 +625,6 @@ drag_grab_motion(struct weston_pointer_grab *grab,
pos.c = weston_coord_add(pointer->pos.c, drag->base.offset.c);
weston_view_set_position(drag->base.icon, pos);
weston_view_schedule_repaint(drag->base.icon);
}
if (drag->base.focus_resource) {
......@@ -821,7 +820,6 @@ drag_grab_touch_motion(struct weston_touch_grab *grab,
pos.c = weston_coord_add(touch_drag->base.offset.c,
touch->grab_pos.c);
weston_view_set_position(touch_drag->base.icon, pos);
weston_view_schedule_repaint(touch_drag->base.icon);
}
if (touch_drag->base.focus_resource) {
......
......@@ -1867,7 +1867,6 @@ weston_tablet_tool_cursor_move(struct weston_tablet_tool *tool,
hotspot.c = weston_coord_sub(pos.c, tool->hotspot.c);
weston_view_set_position(tool->sprite, hotspot);
weston_view_schedule_repaint(tool->sprite);
}
}
......@@ -2201,7 +2200,6 @@ weston_pointer_move_to(struct weston_pointer *pointer,
pos.c = weston_coord_sub(pointer->pos.c,
pointer->hotspot.c);
weston_view_set_position(pointer->sprite, pos);
weston_view_schedule_repaint(pointer->sprite);
}
pointer->grab->interface->focus(pointer->grab);
......