summaryrefslogtreecommitdiff
path: root/openbox/actions/directionaltargetwindow.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-22 19:10:00 +0000
committerDana Jansens <danakj@orodu.net>2007-06-22 19:10:00 +0000
commit6973d5b8a50844ef8eecf076f8f15d5ece4270ef (patch)
tree475de069018ed93911b85f47afd62d767af3fcd2 /openbox/actions/directionaltargetwindow.c
parent16f2b255cb3e504f7695bc94ec691f949bf6722d (diff)
add directionaldesktop action
Diffstat (limited to 'openbox/actions/directionaltargetwindow.c')
-rw-r--r--openbox/actions/directionaltargetwindow.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbox/actions/directionaltargetwindow.c b/openbox/actions/directionaltargetwindow.c
index 93d33fbe..ac6d8b72 100644
--- a/openbox/actions/directionaltargetwindow.c
+++ b/openbox/actions/directionaltargetwindow.c
@@ -42,17 +42,21 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
o->desktop_windows = parse_bool(doc, n);
if ((n = parse_find_node("direction", node))) {
gchar *s = parse_string(doc, n);
- if (!g_ascii_strcasecmp(s, "north"))
+ if (!g_ascii_strcasecmp(s, "north") ||
+ !g_ascii_strcasecmp(s, "up"))
o->direction = OB_DIRECTION_NORTH;
else if (!g_ascii_strcasecmp(s, "northwest"))
o->direction = OB_DIRECTION_NORTHWEST;
else if (!g_ascii_strcasecmp(s, "northeast"))
o->direction = OB_DIRECTION_NORTHEAST;
- else if (!g_ascii_strcasecmp(s, "west"))
+ else if (!g_ascii_strcasecmp(s, "west") ||
+ !g_ascii_strcasecmp(s, "left"))
o->direction = OB_DIRECTION_WEST;
- else if (!g_ascii_strcasecmp(s, "east"))
+ else if (!g_ascii_strcasecmp(s, "east") ||
+ !g_ascii_strcasecmp(s, "right"))
o->direction = OB_DIRECTION_EAST;
- else if (!g_ascii_strcasecmp(s, "south"))
+ else if (!g_ascii_strcasecmp(s, "south") ||
+ !g_ascii_strcasecmp(s, "down"))
o->direction = OB_DIRECTION_NORTH;
else if (!g_ascii_strcasecmp(s, "southwest"))
o->direction = OB_DIRECTION_NORTHWEST;