summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-08-31 01:23:41 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-08-31 01:23:41 +0200
commitd0626e41364dab2b0de31ea2cc8743a93ea835ec (patch)
treefa2af8827d6e3beed5461109d1e039a373577996
parent29ba8b330dd618acd22a09c1e9faa6d69b1884b9 (diff)
downloadautoresize-d0626e41364dab2b0de31ea2cc8743a93ea835ec.tar.gz
autoresize-d0626e41364dab2b0de31ea2cc8743a93ea835ec.tar.bz2
* Reorder code
-rw-r--r--snap.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/snap.c b/snap.c
index 0ec0fd2..81174f7 100644
--- a/snap.c
+++ b/snap.c
@@ -1114,6 +1114,15 @@ static Bool snapInitWindow(CompPlugin * p, CompWindow * w)
return TRUE;
}
+static void snapFiniWindow(CompPlugin * p, CompWindow * w)
+{
+ SNAP_WINDOW(w);
+
+ snapFreeEdges(w);
+
+ free(sw);
+}
+
static CompBool
snapInitObject (CompPlugin *p,
CompObject *o)
@@ -1140,15 +1149,6 @@ snapFiniObject (CompPlugin *p,
DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), (p, o));
}
-static void snapFiniWindow(CompPlugin * p, CompWindow * w)
-{
- SNAP_WINDOW(w);
-
- snapFreeEdges(w);
-
- free(sw);
-}
-
static Bool snapInit(CompPlugin * p)
{
displayPrivateIndex = allocateDisplayPrivateIndex();