924ed6464c
Fixes #1120 When the parent of a view is C_WORKSPACE and the movement direction is either MOVE_PREV or MOVE_NEXT, the code would attempt to move the views to the next output, but swayc_adjacent_output can't accept non-directional movement commands and causes undefined behaviour and a segfault. If the code is simply skipped, we end up in an infinite loop. Instead, we can allow containers whose parent is a C_WORKSPACE take the path that handles MOVE_PREV and MOVE_NEXT, which behaves as you would expect. I'm not certain that this fix is entirely correct as the desired behaviour of move_container is not very well defined, but it seems to work. |
||
---|---|---|
.. | ||
commands | ||
border.c | ||
CMakeLists.txt | ||
commands.c | ||
config.c | ||
container.c | ||
criteria.c | ||
debug_log.c | ||
extensions.c | ||
focus.c | ||
handlers.c | ||
input.c | ||
input_state.c | ||
ipc-json.c | ||
ipc-server.c | ||
layout.c | ||
main.c | ||
output.c | ||
security.c | ||
sway-bar.5.txt | ||
sway-input.5.txt | ||
sway-security.7.txt | ||
sway.1.txt | ||
sway.5.txt | ||
workspace.c |