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]'.
This commit is contained in:
Michael Stapelberg
2011-02-14 23:05:20 +01:00
parent 28dd226259
commit 26a416e016
14 changed files with 302 additions and 250 deletions

View File

@ -66,10 +66,10 @@ bindsym Mod1+Down next v
bindsym Mod1+Up prev v
# Move
bindsym Mod1+Shift+n move before h
bindsym Mod1+Shift+r move before v
bindsym Mod1+Shift+t move after v
bindsym Mod1+Shift+d move after h
bindsym Mod1+Shift+n move left
bindsym Mod1+Shift+r move down
bindsym Mod1+Shift+t move up
bindsym Mod1+Shift+d move right
# alternatively, you can use the cursor keys:
bindsym Mod1+Shift+Left move before h