aboutsummaryrefslogtreecommitdiff
path: root/src/place.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/place.c')
-rw-r--r--src/place.c60
1 files changed, 45 insertions, 15 deletions
diff --git a/src/place.c b/src/place.c
index b9cdaf4..3ccebdf 100644
--- a/src/place.c
+++ b/src/place.c
@@ -38,17 +38,23 @@ static void SubtractBounds(const BoundingBox *src, BoundingBox *dest);
/****************************************************************************
****************************************************************************/
-void InitializePlacement() {
+void
+InitializePlacement()
+{
}
/****************************************************************************
****************************************************************************/
-void StartupPlacement() {
+void
+StartupPlacement()
+{
}
/****************************************************************************
****************************************************************************/
-void ShutdownPlacement() {
+void
+ShutdownPlacement()
+{
Strut *sp;
@@ -63,12 +69,16 @@ void ShutdownPlacement() {
/****************************************************************************
****************************************************************************/
-void DestroyPlacement() {
+void
+DestroyPlacement()
+{
}
/****************************************************************************
****************************************************************************/
-void RemoveClientStrut(ClientNode *np) {
+void
+RemoveClientStrut(ClientNode *np)
+{
Strut *sp;
@@ -92,7 +102,9 @@ void RemoveClientStrut(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void ReadClientStrut(ClientNode *np) {
+void
+ReadClientStrut(ClientNode *np)
+{
BoundingBox box;
Strut *sp;
@@ -230,7 +242,9 @@ void ReadClientStrut(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void GetScreenBounds(const ScreenType *sp, BoundingBox *box) {
+void
+GetScreenBounds(const ScreenType *sp, BoundingBox *box)
+{
box->x = sp->x;
box->y = sp->y;
@@ -242,7 +256,9 @@ void GetScreenBounds(const ScreenType *sp, BoundingBox *box) {
/****************************************************************************
* Shrink dest such that it does not intersect with src.
****************************************************************************/
-void SubtractBounds(const BoundingBox *src, BoundingBox *dest) {
+void
+SubtractBounds(const BoundingBox *src, BoundingBox *dest)
+{
BoundingBox boxes[4];
@@ -307,7 +323,9 @@ void SubtractBounds(const BoundingBox *src, BoundingBox *dest) {
/****************************************************************************
****************************************************************************/
-void UpdateTrayBounds(BoundingBox *box, unsigned int layer) {
+void
+UpdateTrayBounds(BoundingBox *box, unsigned int layer)
+{
TrayType *tp;
BoundingBox src;
@@ -337,7 +355,9 @@ void UpdateTrayBounds(BoundingBox *box, unsigned int layer) {
/****************************************************************************
****************************************************************************/
-void UpdateStrutBounds(BoundingBox *box) {
+void
+UpdateStrutBounds(BoundingBox *box)
+{
Strut *sp;
BoundingBox last;
@@ -359,7 +379,9 @@ void UpdateStrutBounds(BoundingBox *box) {
/****************************************************************************
****************************************************************************/
-void PlaceClient(ClientNode *np, int alreadyMapped) {
+void
+PlaceClient(ClientNode *np, int alreadyMapped)
+{
static int offset = 0;
static int prevx = -1;
@@ -458,7 +480,9 @@ void PlaceClient(ClientNode *np, int alreadyMapped) {
/****************************************************************************
****************************************************************************/
-void ConstrainSize(ClientNode *np) {
+void
+ConstrainSize(ClientNode *np)
+{
BoundingBox box;
const ScreenType *sp;
@@ -517,7 +541,9 @@ void ConstrainSize(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void PlaceMaximizedClient(ClientNode *np) {
+void
+PlaceMaximizedClient(ClientNode *np)
+{
BoundingBox box;
const ScreenType *sp;
@@ -577,7 +603,9 @@ void PlaceMaximizedClient(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void GetGravityDelta(const ClientNode *np, int *x, int *y) {
+void
+GetGravityDelta(const ClientNode *np, int *x, int *y)
+{
int north, south, east, west;
@@ -631,7 +659,9 @@ void GetGravityDelta(const ClientNode *np, int *x, int *y) {
/****************************************************************************
* Move the window in the specified direction for reparenting.
****************************************************************************/
-void GravitateClient(ClientNode *np, int negate) {
+void
+GravitateClient(ClientNode *np, int negate)
+{
int deltax, deltay;