foo-wm

(Archived) Experimental Zooming IPC-based WM
git clone http://milesalan.com/git/foo-wm
Log | Files | Refs | Mirror | README | LICENSE

commit c77e951aa88bb87f6d2e87fd3e311e5b62fa1748
parent 72fbb43c806b426c3a5080a6ed5797a8b14769df
Author: = <miles.sandlar@gmail.com>
Date:   Mon,  6 Aug 2012 23:25:09 -0400

Directional focusing with: focus direction

Diffstat:
Msrc/commands.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/commands.c b/src/commands.c @@ -143,8 +143,9 @@ void zoom(int level) { void focus(char * argA, char * argB) { if (!strcmp(argA, "direction")) { int direction = directionStringToInt(argB); - - + Node *newFocus; + newFocus = getBrotherByDirection(focusedNode, direction); + focusNode(newFocus, NULL, True, True); } else { int delta = atoi(argB);