summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog1
-rw-r--r--src/actions.c18
3 files changed, 11 insertions, 9 deletions
diff --git a/AUTHORS b/AUTHORS
index 2dba82c..af828b5 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -31,3 +31,4 @@ Thien-Thi Nguyen <ttn@glug.org>
Joshua Neuheisel <jneuheisel@msn.com>
Sylvain BEUCLER <beuc@beuc.net>
Cameron Patrick <cameron@patrick.wattle.id.au>
+Trent Buck <fubarbaz@bigpond.com>
diff --git a/ChangeLog b/ChangeLog
index b39edf2..307690b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
aborts, the frame number when they select one, or 'No such frame'
when they selected a nonexistent one.
(cmd_version): return the version string in non-interactive mode.
+ (parse_wingravity): accept numbers for gravity.
* src/events.c (property_notify): pass the root window to
receive_command.
diff --git a/src/actions.c b/src/actions.c
index 84ba3b5..2f53294 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2151,23 +2151,23 @@ parse_wingravity (char *data)
{
int ret = -1;
- if (!strcasecmp (data, "northwest") || !strcasecmp (data, "nw"))
+ if (!strcasecmp (data, "northwest") || !strcasecmp (data, "nw") || !strcmp (data, "7"))
ret = NorthWestGravity;
- if (!strcasecmp (data, "north") || !strcasecmp (data, "n"))
+ if (!strcasecmp (data, "north") || !strcasecmp (data, "n") || !strcmp (data, "8"))
ret = NorthGravity;
- if (!strcasecmp (data, "northeast") || !strcasecmp (data, "ne"))
+ if (!strcasecmp (data, "northeast") || !strcasecmp (data, "ne") || !strcmp (data, "9"))
ret = NorthEastGravity;
- if (!strcasecmp (data, "west") || !strcasecmp (data, "w"))
+ if (!strcasecmp (data, "west") || !strcasecmp (data, "w") || !strcmp (data, "4"))
ret = WestGravity;
- if (!strcasecmp (data, "center") || !strcasecmp (data, "c"))
+ if (!strcasecmp (data, "center") || !strcasecmp (data, "c") || !strcmp (data, "5"))
ret = CenterGravity;
- if (!strcasecmp (data, "East") || !strcasecmp (data, "e"))
+ if (!strcasecmp (data, "east") || !strcasecmp (data, "e") || !strcmp (data, "6"))
ret = EastGravity;
- if (!strcasecmp (data, "southwest") || !strcasecmp (data, "sw"))
+ if (!strcasecmp (data, "southwest") || !strcasecmp (data, "sw") || !strcmp (data, "1"))
ret = SouthWestGravity;
- if (!strcasecmp (data, "South") || !strcasecmp (data, "s"))
+ if (!strcasecmp (data, "south") || !strcasecmp (data, "s") || !strcmp (data, "2"))
ret = SouthGravity;
- if (!strcasecmp (data, "southeast") || !strcasecmp (data, "se"))
+ if (!strcasecmp (data, "southeast") || !strcasecmp (data, "se") || !strcmp (data, "3"))
ret = SouthEastGravity;
return ret;