move workspace from dead output to other output

This commit is contained in:
taiyu 2015-08-26 21:25:57 -07:00
parent ef31ee5cf6
commit d115335951
3 changed files with 21 additions and 4 deletions

View file

@ -169,6 +169,11 @@ static void pointer_mode_set_left(void) {
pointer_state.mode = M_DRAGGING | M_FLOATING;
} else {
pointer_state.mode = M_DRAGGING | M_TILING;
// unset mode if we cant drag tile
if (initial.ptr->parent->type == C_WORKSPACE &&
initial.ptr->parent->children->length == 1) {
pointer_state.mode = 0;
}
}
}