summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-11 09:40:12 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-11 09:40:12 +0100
commit7c64e13291bb04a589f2eccb9d525abf6f709802 (patch)
tree7ccc733743db02c6a024b0af3bbc126d0d5838a4
parentc5e079036df0f4b135a8d1871a114c6321f0aee8 (diff)
downloadput-7c64e13291bb04a589f2eccb9d525abf6f709802.tar.gz
put-7c64e13291bb04a589f2eccb9d525abf6f709802.tar.bz2
Use case-insensitive matching.
-rw-r--r--put.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/put.c b/put.c
index cddc7bf..979880e 100644
--- a/put.c
+++ b/put.c
@@ -660,39 +660,39 @@ putInitiateCommon (CompDisplay *d,
static PutType
putTypeFromString (char *type)
{
- if (strcmp (type, "exact") == 0)
+ if (strcasecmp (type, "exact") == 0)
return PutExact;
- else if (strcmp (type, "pointer") == 0)
+ else if (strcasecmp (type, "pointer") == 0)
return PutPointer;
- else if (strcmp (type, "viewport") == 0)
+ else if (strcasecmp (type, "viewport") == 0)
return PutViewport;
- else if (strcmp (type, "viewportleft") == 0)
+ else if (strcasecmp (type, "viewportleft") == 0)
return PutViewportLeft;
- else if (strcmp (type, "viewportright") == 0)
+ else if (strcasecmp (type, "viewportright") == 0)
return PutViewportRight;
- else if (strcmp (type, "viewportup") == 0)
+ else if (strcasecmp (type, "viewportup") == 0)
return PutViewportUp;
- else if (strcmp (type, "viewportdown") == 0)
+ else if (strcasecmp (type, "viewportdown") == 0)
return PutViewportDown;
- else if (strcmp (type, "restore") == 0)
+ else if (strcasecmp (type, "restore") == 0)
return PutRestore;
- else if (strcmp (type, "bottomleft") == 0)
+ else if (strcasecmp (type, "bottomleft") == 0)
return PutBottomLeft;
- else if (strcmp (type, "left") == 0)
+ else if (strcasecmp (type, "left") == 0)
return PutLeft;
- else if (strcmp (type, "topleft") == 0)
+ else if (strcasecmp (type, "topleft") == 0)
return PutTopLeft;
- else if (strcmp (type, "top") == 0)
+ else if (strcasecmp (type, "top") == 0)
return PutTop;
- else if (strcmp (type, "topright") == 0)
+ else if (strcasecmp (type, "topright") == 0)
return PutTopRight;
- else if (strcmp (type, "right") == 0)
+ else if (strcasecmp (type, "right") == 0)
return PutRight;
- else if (strcmp (type, "bottomright") == 0)
+ else if (strcasecmp (type, "bottomright") == 0)
return PutBottomRight;
- else if (strcmp (type, "bottom") == 0)
+ else if (strcasecmp (type, "bottom") == 0)
return PutBottom;
- else if (strcmp (type, "center") == 0)
+ else if (strcasecmp (type, "center") == 0)
return PutCenter;
else
return PutUnknown;