summaryrefslogtreecommitdiff
path: root/put.c
diff options
context:
space:
mode:
Diffstat (limited to 'put.c')
-rw-r--r--put.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/put.c b/put.c
index 62a9c4a..ab034a1 100644
--- a/put.c
+++ b/put.c
@@ -707,26 +707,6 @@ putTypeFromString (char *type)
}
static Bool
-putInitiate (CompDisplay *d,
- CompAction *action,
- CompActionState state,
- CompOption *option,
- int nOption)
-{
- PutType type = PutUnknown;
- char *typeString;
-
- typeString = getStringOptionNamed (option, nOption, "type", NULL);
- if (typeString)
- type = putTypeFromString (typeString);
-
- if (type == PutViewport)
- return putToViewport (d, action, state, option, nOption);
- else
- return putInitiateCommon (d, action, state, option, nOption, type);
-}
-
-static Bool
putToViewport (CompDisplay *d,
CompAction *action,
CompActionState state,
@@ -783,6 +763,26 @@ putToViewport (CompDisplay *d,
}
static Bool
+putInitiate (CompDisplay *d,
+ CompAction *action,
+ CompActionState state,
+ CompOption *option,
+ int nOption)
+{
+ PutType type = PutUnknown;
+ char *typeString;
+
+ typeString = getStringOptionNamed (option, nOption, "type", NULL);
+ if (typeString)
+ type = putTypeFromString (typeString);
+
+ if (type == PutViewport)
+ return putToViewport (d, action, state, option, nOption);
+ else
+ return putInitiateCommon (d, action, state, option, nOption, type);
+}
+
+static Bool
putViewportLeft (CompDisplay *d,
CompAction *action,
CompActionState state,