Fix dragging floating containers / click handling

This commit is contained in:
Michael Stapelberg
2010-12-31 01:38:17 +01:00
parent daf00a932f
commit 2d05c3a37d
5 changed files with 90 additions and 26 deletions

View File

@ -172,6 +172,16 @@ void toggle_floating_mode(Con *con, bool automatic) {
floating_enable(con, automatic);
}
/*
* Raises the given container in the list of floating containers
*
*/
void floating_raise_con(Con *con) {
DLOG("Raising floating con %p / %s\n", con, con->name);
TAILQ_REMOVE(&(con->parent->floating_head), con, floating_windows);
TAILQ_INSERT_TAIL(&(con->parent->floating_head), con, floating_windows);
}
DRAGGING_CB(drag_window_callback) {
struct xcb_button_press_event_t *event = extra;