Just noticed that while reviewing my frame object code.
I think you mean "leaf" (Blatt) and not "leave" (verlassen)
Flo
--
() ascii ribbon campaign - stop html mail www.asciiribbon.org
/\ www.the-compiler.org | I love long mails http://email.is-not-s.ms/
Your manuscript is both good and original, but the part that is good is not
original and the part that is original is not good. -- Samuel Johnson
From 9f9847adf07299ddf9bf6e1b852f1f05072cdcec Mon Sep 17 00:00:00 2001 From: Florian Bruhin <git _at_ the _minus_ compiler _dot_ org> Date: Sun, 13 Oct 2013 21:32:49 +0200 Subject: [PATCH] Fix comment spelling: leave -> leaf --- src/layout.c | 6 +++--- src/layout.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layout.c b/src/layout.c index 85e8049..7c9212a 100644 --- a/src/layout.c +++ b/src/layout.c @@ -1100,7 +1100,7 @@ int cycle_all_command(int argc, char** argv) { * / \ / \ * . . . . */ - // and then to the left (i.e. find first leave + // and then to the left (i.e. find first leaf) while (frame->type == TYPE_FRAMES) { // then go deeper, with the other direction frame->content.layout.selection = other_direction; @@ -1490,7 +1490,7 @@ HSClient* frame_focused_client(HSFrame* frame) { if (!frame) { return NULL; } - // follow the selection to a leave + // follow the selection to a leaf while (frame->type == TYPE_FRAMES) { frame = (frame->content.layout.selection == 0) ? frame->content.layout.a : @@ -1593,7 +1593,7 @@ bool focus_client(struct HSClient* client, bool switch_tag, bool switch_monitor) } int frame_focus_recursive(HSFrame* frame) { - // follow the selection to a leave + // follow the selection to a leaf while (frame->type == TYPE_FRAMES) { frame = (frame->content.layout.selection == 0) ? frame->content.layout.a : diff --git a/src/layout.h b/src/layout.h index b82b6da..0dccb56 100644 --- a/src/layout.h +++ b/src/layout.h @@ -142,7 +142,7 @@ HSFrame* frame_neighbour(HSFrame* frame, char direction); int frame_inner_neighbour_index(HSFrame* frame, char direction); int frame_focus_command(int argc, char** argv, GString* output); -// follow selection to leave and focus this frame +// follow selection to leaf and focus this frame int frame_focus_recursive(HSFrame* frame); void frame_do_recursive(HSFrame* frame, void (*action)(HSFrame*), int order); void frame_do_recursive_data(HSFrame* frame, void (*action)(HSFrame*,void*), -- 1.8.4
Attachment:
pgpd2lrIDXmc4.pgp
Description: PGP signature