Reposition floating windows while dragging
This commit is contained in:
parent
246d4627be
commit
143622d2d7
|
@ -314,11 +314,10 @@ DRAGGING_CB(drag_window_callback) {
|
||||||
/* Reposition the client correctly while moving */
|
/* Reposition the client correctly while moving */
|
||||||
con->rect.x = old_rect->x + (new_x - event->root_x);
|
con->rect.x = old_rect->x + (new_x - event->root_x);
|
||||||
con->rect.y = old_rect->y + (new_y - event->root_y);
|
con->rect.y = old_rect->y + (new_y - event->root_y);
|
||||||
//reposition_client(conn, con);
|
/* TODO: don’t re-render the whole tree just because we change
|
||||||
/* Because reposition_client does not send a faked configure event (only resize does),
|
* coordinates of a floating window */
|
||||||
* we need to initiate that on our own */
|
tree_render();
|
||||||
//fake_absolute_configure_notify(conn, client);
|
x_push_changes(croot);
|
||||||
/* fake_absolute_configure_notify flushes */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue