optimization: when moving floating windows, render/push only the floatingcon

This commit is contained in:
Michael Stapelberg
2011-04-01 22:40:12 +02:00
parent d8bf633e56
commit 21c7a69812
3 changed files with 18 additions and 8 deletions

View File

@ -231,10 +231,10 @@ DRAGGING_CB(drag_window_callback) {
/* Reposition the client correctly while moving */
con->rect.x = old_rect->x + (new_x - event->root_x);
con->rect.y = old_rect->y + (new_y - event->root_y);
/* TODO: dont re-render the whole tree just because we change
* coordinates of a floating window */
tree_render();
x_push_changes(croot);
render_con(con, false);
x_push_node(con, true);
xcb_flush(conn);
}
/*