aboutsummaryrefslogtreecommitdiff
path: root/src/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/border.c')
-rw-r--r--src/border.c62
1 files changed, 45 insertions, 17 deletions
diff --git a/src/border.c b/src/border.c
index 8baf7b7..cfe6b93 100644
--- a/src/border.c
+++ b/src/border.c
@@ -63,12 +63,16 @@ static int DrawBorderButtons(const ClientNode *np, Pixmap canvas, GC gc);
/****************************************************************************
****************************************************************************/
-void InitializeBorders() {
+void
+InitializeBorders()
+{
}
/****************************************************************************
****************************************************************************/
-void StartupBorders() {
+void
+StartupBorders()
+{
XGCValues gcValues;
unsigned long gcMask;
@@ -98,7 +102,9 @@ void StartupBorders() {
/****************************************************************************
****************************************************************************/
-void ShutdownBorders() {
+void
+ShutdownBorders()
+{
int x;
@@ -112,18 +118,24 @@ void ShutdownBorders() {
/****************************************************************************
****************************************************************************/
-void DestroyBorders() {
+void
+DestroyBorders()
+{
}
/****************************************************************************
****************************************************************************/
-int GetBorderIconSize() {
+int
+GetBorderIconSize()
+{
return titleHeight - 4;
}
/****************************************************************************
****************************************************************************/
-BorderActionType GetBorderActionType(const ClientNode *np, int x, int y) {
+BorderActionType
+GetBorderActionType(const ClientNode *np, int x, int y)
+{
int north;
int offset;
@@ -230,7 +242,9 @@ BorderActionType GetBorderActionType(const ClientNode *np, int x, int y) {
/****************************************************************************
****************************************************************************/
-void DrawBorder(const ClientNode *np, const XExposeEvent *expose) {
+void
+DrawBorder(const ClientNode *np, const XExposeEvent *expose)
+{
XRectangle rect;
unsigned int width;
@@ -332,8 +346,10 @@ void DrawBorder(const ClientNode *np, const XExposeEvent *expose) {
/****************************************************************************
****************************************************************************/
-void DrawBorderHelper(const ClientNode *np,
- unsigned int width, unsigned int height, int drawIcon) {
+void
+DrawBorderHelper(const ClientNode *np,
+ unsigned int width, unsigned int height, int drawIcon)
+{
ColorType borderTextColor;
long borderPixel, borderTextPixel;
@@ -517,8 +533,10 @@ void DrawBorderHelper(const ClientNode *np,
/****************************************************************************
****************************************************************************/
-void DrawButtonBorder(const ClientNode *np, int offset,
- Pixmap canvas, GC gc) {
+void
+DrawButtonBorder(const ClientNode *np, int offset,
+ Pixmap canvas, GC gc)
+{
long up, down;
long bsize;
@@ -551,7 +569,9 @@ void DrawButtonBorder(const ClientNode *np, int offset,
/****************************************************************************
****************************************************************************/
-int DrawBorderButtons(const ClientNode *np, Pixmap canvas, GC gc) {
+int
+DrawBorderButtons(const ClientNode *np, Pixmap canvas, GC gc)
+{
Pixmap pixmap;
int count = 0;
@@ -653,7 +673,9 @@ int DrawBorderButtons(const ClientNode *np, Pixmap canvas, GC gc) {
* may cause borders on the current desktop to become visible after moving
* clients to their assigned desktops.
****************************************************************************/
-void ExposeCurrentDesktop() {
+void
+ExposeCurrentDesktop()
+{
ClientNode *np;
int layer;
@@ -670,8 +692,10 @@ void ExposeCurrentDesktop() {
/****************************************************************************
****************************************************************************/
-void GetBorderSize(const ClientNode *np,
- int *north, int *south, int *east, int *west) {
+void
+GetBorderSize(const ClientNode *np,
+ int *north, int *south, int *east, int *west)
+{
Assert(np);
Assert(north);
@@ -712,7 +736,9 @@ void GetBorderSize(const ClientNode *np,
/****************************************************************************
****************************************************************************/
-void SetBorderWidth(const char *str) {
+void
+SetBorderWidth(const char *str)
+{
int width;
@@ -732,7 +758,9 @@ void SetBorderWidth(const char *str) {
/****************************************************************************
****************************************************************************/
-void SetTitleHeight(const char *str) {
+void
+SetTitleHeight(const char *str)
+{
int height;