summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
commit045ba4cb32fa3e1c16216ff8809bd40db9c2ed77 (patch)
treea5f6f2d27646d56bdcf42ddc15c05ce8da8c25e4 /beryl-plugins/src/wobbly.c
parentcf2abe773b6536e55c6d76d5444fac69ccf70773 (diff)
downloadmarex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.gz
marex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.bz2
indent.sh on plugins
git-svn-id: file:///beryl/trunk@3081 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c64
1 files changed, 34 insertions, 30 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 398f20b..8bd7375 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -979,7 +979,7 @@ static void findNextWestEdge(CompWindow * w, Object * object)
x = object->position.x + w->output.left - w->input.left;
- output = outputDeviceForPoint (w->screen, x, object->position.y);
+ output = outputDeviceForPoint(w->screen, x, object->position.y);
if (x >= w->screen->outputDev[output].region.extents.x1)
{
@@ -996,13 +996,13 @@ static void findNextWestEdge(CompWindow * w, Object * object)
{
s = p->struts->left.y - w->output.top;
e = p->struts->left.y + p->struts->left.height +
- w->output.bottom;
+ w->output.bottom;
}
else if (!p->invisible && (p->type & SNAP_WINDOW_TYPE))
{
s = p->attrib.y - p->output.top - w->output.top;
e = p->attrib.y + p->height + p->output.bottom +
- w->output.bottom;
+ w->output.bottom;
}
else
continue;
@@ -1082,7 +1082,7 @@ static void findNextEastEdge(CompWindow * w, Object * object)
x = object->position.x - w->output.right + w->input.right;
- output = outputDeviceForPoint (w->screen, x, object->position.y);
+ output = outputDeviceForPoint(w->screen, x, object->position.y);
if (x <= w->screen->outputDev[output].region.extents.x2)
{
@@ -1099,13 +1099,13 @@ static void findNextEastEdge(CompWindow * w, Object * object)
{
s = p->struts->right.y - w->output.top;
e = p->struts->right.y + p->struts->right.height +
- w->output.bottom;
+ w->output.bottom;
}
else if (!p->invisible && (p->type & SNAP_WINDOW_TYPE))
{
s = p->attrib.y - p->output.top - w->output.top;
e = p->attrib.y + p->height + p->output.bottom +
- w->output.bottom;
+ w->output.bottom;
}
else
continue;
@@ -1185,7 +1185,7 @@ static void findNextNorthEdge(CompWindow * w, Object * object)
y = object->position.y + w->output.top - w->input.top;
- output = outputDeviceForPoint (w->screen, object->position.x, y);
+ output = outputDeviceForPoint(w->screen, object->position.x, y);
if (y >= w->screen->outputDev[output].region.extents.y1)
{
@@ -1201,14 +1201,13 @@ static void findNextNorthEdge(CompWindow * w, Object * object)
if (p->mapNum && p->struts)
{
s = p->struts->top.x - w->output.left;
- e = p->struts->top.x + p->struts->top.width +
- w->output.right;
- }
+ e = p->struts->top.x + p->struts->top.width + w->output.right;
+ }
else if (!p->invisible && (p->type & SNAP_WINDOW_TYPE))
{
s = p->attrib.x - p->output.left - w->output.left;
e = p->attrib.x + p->width + p->output.right +
- w->output.right;
+ w->output.right;
}
else
continue;
@@ -1234,7 +1233,7 @@ static void findNextNorthEdge(CompWindow * w, Object * object)
if (p->mapNum && p->struts)
v = p->struts->top.y + p->struts->top.height;
else
- v = p->attrib.y + p->height + p->input.bottom;
+ v = p->attrib.y + p->height + p->input.bottom;
if (v <= y)
{
@@ -1288,7 +1287,7 @@ static void findNextSouthEdge(CompWindow * w, Object * object)
y = object->position.y - w->output.bottom + w->input.bottom;
- output = outputDeviceForPoint (w->screen, object->position.x, y);
+ output = outputDeviceForPoint(w->screen, object->position.x, y);
if (y <= w->screen->outputDev[output].region.extents.y2)
{
@@ -1304,14 +1303,14 @@ static void findNextSouthEdge(CompWindow * w, Object * object)
if (p->mapNum && p->struts)
{
s = p->struts->bottom.x - w->output.left;
- e = p->struts->bottom.x + p->struts->bottom.width +
- w->output.right;
- }
+ e = p->struts->bottom.x + p->struts->bottom.width +
+ w->output.right;
+ }
else if (!p->invisible && (p->type & SNAP_WINDOW_TYPE))
{
s = p->attrib.x - p->output.left - w->output.left;
e = p->attrib.x + p->width + p->output.right +
- w->output.right;
+ w->output.right;
}
else
continue;
@@ -2266,14 +2265,14 @@ static void wobblyPreparePaintScreen(CompScreen * s, int msSinceLastPaint)
ww->model = NULL;
if (w->attrib.x == w->serverX &&
- w->attrib.y == w->serverY)
+ w->attrib.y == w->serverY)
{
- moveWindow (w,
- model->topLeft.x + w->output.left -
- w->attrib.x,
- model->topLeft.y + w->output.top -
- w->attrib.y, TRUE, TRUE);
- syncWindowPosition (w);
+ moveWindow(w,
+ model->topLeft.x + w->output.left -
+ w->attrib.x,
+ model->topLeft.y + w->output.top -
+ w->attrib.y, TRUE, TRUE);
+ syncWindowPosition(w);
}
ww->model = model;
@@ -3008,7 +3007,8 @@ static Bool wobblyDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
return status;
}
-static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy, int dwidth, int dheight)
+static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy,
+ int dwidth, int dheight)
{
WOBBLY_SCREEN(w->screen);
WOBBLY_WINDOW(w);
@@ -3027,7 +3027,7 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy, int dwidth,
ww->model->anchorObject->immobile = FALSE;
ww->model->anchorObject = NULL;
}
-
+
modelAddEdgeAnchors(ww->model,
WIN_X(w), WIN_Y(w), WIN_W(w), WIN_H(w));
}
@@ -3050,7 +3050,7 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy, int dwidth,
ww->wobbly |= WobblyInitial;
ws->wobblyWindows |= ww->wobbly;
-
+
damagePendingOnScreen(w->screen);
}
}
@@ -3070,7 +3070,10 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy, int dwidth,
ww->model->anchorObject->immobile = FALSE;
ww->model->anchorObject = modelFindNearestObject(ww->model,
- w->screen->display->pointerX, w->screen->display->pointerY);
+ w->screen->display->
+ pointerX,
+ w->screen->display->
+ pointerY);
ww->model->anchorObject->immobile = TRUE;
@@ -3140,7 +3143,7 @@ wobblyWindowGrabNotify(CompWindow * w,
WOBBLY_SCREEN(w->screen);
WOBBLY_DISPLAY(w->screen->display);
- if (!ws->grabWindow)
+ if (!ws->grabWindow)
{
ws->grabMask = mask;
ws->grabWindow = w;
@@ -3616,7 +3619,8 @@ static void wobblyFini(CompPlugin * p)
}
CompPluginDep wobblyDeps[] = {
- {CompPluginRuleAfter, "decoration"},
+ {CompPluginRuleAfter, "decoration"}
+ ,
};
CompPluginFeature wobblyFeatures[] = {