Skip to content

Commit

Permalink
#148 transactional animations
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Sep 12, 2022
1 parent 45e18e0 commit 07c5c7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ void mouse_drop_action_swap(struct window_manager *wm, struct view *src_view, st
}
}

#if 0
window_node_flush(src_node);
window_node_flush(dst_node);
#else
struct window_animation *window_list = NULL;
window_node_capture_windows(src_node, &window_list);
window_node_capture_windows(dst_node, &window_list);
window_manager_animate_window_list(window_list, buf_len(window_list));
buf_free(window_list);
#endif
}

void mouse_drop_action_warp(struct space_manager *sm, struct window_manager *wm, struct view *src_view, struct window_node *src_node, struct window *src_window, struct view *dst_view, struct window_node *dst_node, struct window *dst_window, enum window_node_split split, enum window_node_child child)
Expand Down

0 comments on commit 07c5c7e

Please sign in to comment.