From acab07270dc06c5ea1e493d5f442beea33e1861a Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 11 Feb 2008 09:43:48 +0100 Subject: Build fix. --- put.c | 40 ++++++++++++++++++++-------------------- 1 file 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, -- cgit v1.1