summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-11 10:37:53 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-11 10:37:53 +0100
commit92bceeb449b0564831b8b679b9d4f6a8fd735233 (patch)
tree9886a9dd581f313cfd1a0415e0c784ace896df65
parent69322941e1b6c1a9603d6fd7c7227e23e28d9ab0 (diff)
downloadput-92bceeb449b0564831b8b679b9d4f6a8fd735233.tar.gz
put-92bceeb449b0564831b8b679b9d4f6a8fd735233.tar.bz2
Coding style fix.
-rw-r--r--put.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/put.c b/put.c
index 5b53eaf..e01ccfa 100644
--- a/put.c
+++ b/put.c
@@ -576,39 +576,41 @@ putInitiateCommon (CompDisplay *d,
{
if (putGetWindowCenter (s))
- {
+ {
/* window center */
dx = rx - (w->width / 2) - x;
dy = ry - (w->height / 2) - y;
- }
+ }
else if (rx < s->workArea.width / 2 &&
ry < s->workArea.height / 2)
- {
+ {
/* top left quad */
dx = rx - x + w->input.left;
dy = ry - y + w->input.top;
- }
+ }
else if (rx < s->workArea.width / 2 &&
ry >= s->workArea.height / 2)
- {
+ {
/* bottom left quad */
dx = rx - x + w->input.left;
dy = ry - w->height - y - w->input.bottom;
- }
+ }
else if (rx >= s->workArea.width / 2 &&
ry < s->workArea.height / 2)
- {
+ {
/* top right quad */
dx = rx - w->width - x - w->input.right;
dy = ry - y + w->input.top;
- }
+ }
else
- {
+ {
/* bottom right quad */
dx = rx - w->width - x - w->input.right;
dy = ry - w->height - y - w->input.bottom;
- }
- } else {
+ }
+ }
+ else
+ {
dx = dy = 0;
}
}