diff --git a/common/util.c b/common/util.c index d09e1f7a7..4b90201f9 100644 --- a/common/util.c +++ b/common/util.c @@ -107,6 +107,8 @@ position_get_from_str(const char *pos) return Right; else if(!a_strncmp(pos, "left", 4)) return Left; + else if(!a_strncmp(pos, "auto", 4)) + return Auto; return Off; } diff --git a/common/util.h b/common/util.h index 93220853d..eeb5a4d08 100644 --- a/common/util.h +++ b/common/util.h @@ -33,7 +33,8 @@ typedef enum Top, Bottom, Right, - Left + Left, + Auto } Position; /** Link a name to a function */