diff options
author | Drew DeVault <[email protected]> | 2015-08-27 07:42:12 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-27 07:42:12 -0400 |
commit | 24f4b92ea214bd1755d92dc3a07efa2bce575112 (patch) | |
tree | eb8890eb711a55a58e3855c6d9328e3b1dd09063 /sway/input_state.c | |
parent | ef31ee5cf6aabfdf4730ac64c8b004be238df1a8 (diff) | |
parent | d11533595133685d15fd6cdbf9f1611be5e8e2f3 (diff) |
Merge pull request #142 from taiyu-len/master
move workspace from dead output to other output
Diffstat (limited to 'sway/input_state.c')
-rw-r--r-- | sway/input_state.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; + } } } |