From d11533595133685d15fd6cdbf9f1611be5e8e2f3 Mon Sep 17 00:00:00 2001 From: taiyu Date: Wed, 26 Aug 2015 21:25:57 -0700 Subject: move workspace from dead output to other output --- sway/input_state.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sway/input_state.c') diff --git a/sway/input_state.c b/sway/input_state.c index 10425c57..0a7c073d 100644 --- a/sway/input_state.c +++ b/sway/input_state.c @@ -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; + } } } -- cgit v1.2.3-54-g00ecf