]> git.sur5r.net Git - i3/i3/commit
move.c: Fix move_to_output_directed problems
authorOrestis Floros <orestisf1993@gmail.com>
Tue, 9 Oct 2018 18:45:59 +0000 (21:45 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Tue, 9 Oct 2018 19:35:04 +0000 (22:35 +0300)
commit9380a75186f8d2adcf572a3741168f12351faa9b
tree7d624e05f77a20a9473df5cf29b5f2d5c1714f7b
parentdfe89cc4f1706a6fae0ae3816787d0fb22dadd7d
move.c: Fix move_to_output_directed problems

- Use workspace_show that correctly updates _NET_CURRENT_DESKTOP, warps
mouse.
- Use TAILQ_INSERT_TAIL only for focus_head. Focus order is not related
to direction.
- Call con_focus only if con was focused before. See testcase for
directional move with command criteria.
- Correct first call of move_to_output_directed in tree_move which
didn't call ipc_send_window_event("move", con) and
ewmh_update_wm_desktop().
- Don't produce events when the move doesn't happen. Correct
276-ipc-window-move.t as well.
src/move.c
testcases/t/276-ipc-window-move.t
testcases/t/294-focus-order.t