]> git.sur5r.net Git - i3/i3/commit
refactor tree_move() into src/move.c, change config (!), change testcase
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Feb 2011 22:05:20 +0000 (23:05 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Feb 2011 22:05:20 +0000 (23:05 +0100)
commit26a416e016314bdeb299cebccae3e8617b697d98
treebda78a3e8f773b9fc710992f3bc22d752c369c6c
parent28dd226259d9d5afc535b7839f8b953900ef0b0f
refactor tree_move() into src/move.c, change config (!), change testcase

Due to lots of cases which were added and added to tree_move(), the function
was not really easy to understand. For this refactoring, I wrote tree_move()
from scratch, thinking about (hopefully) all cases. The testsuite still passes.

The move command also has different parameters now. Instead of the hard to
understand 'before v' stuff, we use 'move [left|right|up|down]'.
14 files changed:
Makefile
i3.config
include/all.h
include/con.h
include/move.h [new file with mode: 0644]
include/tree.h
include/workspace.h
src/cmdparse.l
src/cmdparse.y
src/con.c
src/move.c [new file with mode: 0644]
src/tree.c
src/workspace.c
testcases/t/24-move.t