diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-26 21:25:57 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-26 21:25:57 -0700 |
commit | d11533595133685d15fd6cdbf9f1611be5e8e2f3 (patch) | |
tree | eb8890eb711a55a58e3855c6d9328e3b1dd09063 /sway/input_state.c | |
parent | Merge pull request #139 from Luminarys/master (diff) | |
download | sway-d11533595133685d15fd6cdbf9f1611be5e8e2f3.tar.gz sway-d11533595133685d15fd6cdbf9f1611be5e8e2f3.tar.zst sway-d11533595133685d15fd6cdbf9f1611be5e8e2f3.zip |
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) { | |||
169 | pointer_state.mode = M_DRAGGING | M_FLOATING; | 169 | pointer_state.mode = M_DRAGGING | M_FLOATING; |
170 | } else { | 170 | } else { |
171 | pointer_state.mode = M_DRAGGING | M_TILING; | 171 | pointer_state.mode = M_DRAGGING | M_TILING; |
172 | // unset mode if we cant drag tile | ||
173 | if (initial.ptr->parent->type == C_WORKSPACE && | ||
174 | initial.ptr->parent->children->length == 1) { | ||
175 | pointer_state.mode = 0; | ||
176 | } | ||
172 | } | 177 | } |
173 | } | 178 | } |
174 | 179 | ||