aboutsummaryrefslogtreecommitdiff
path: root/src/outline.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
commite96f9f3869c6ea5803f5759bf1737547a46be22f (patch)
treee070f699751eebad032a47f118293ef219f1e147 /src/outline.c
parent0d1af7a8c8e163250e940833d646a12852aa9e5b (diff)
downloadjwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/outline.c')
-rw-r--r--src/outline.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/outline.c b/src/outline.c
index b42e70a..03b7ad9 100644
--- a/src/outline.c
+++ b/src/outline.c
@@ -15,12 +15,16 @@ static int outlineDrawn;
/****************************************************************************
****************************************************************************/
-void InitializeOutline() {
+void
+InitializeOutline()
+{
}
/****************************************************************************
****************************************************************************/
-void StartupOutline() {
+void
+StartupOutline()
+{
XGCValues gcValues;
@@ -35,18 +39,24 @@ void StartupOutline() {
/****************************************************************************
****************************************************************************/
-void ShutdownOutline() {
+void
+ShutdownOutline()
+{
JXFreeGC(display, outlineGC);
}
/****************************************************************************
****************************************************************************/
-void DestroyOutline() {
+void
+DestroyOutline()
+{
}
/****************************************************************************
****************************************************************************/
-void DrawOutline(int x, int y, int width, int height) {
+void
+DrawOutline(int x, int y, int width, int height)
+{
if(!outlineDrawn) {
JXSync(display, False);
JXGrabServer(display);
@@ -61,7 +71,9 @@ void DrawOutline(int x, int y, int width, int height) {
/****************************************************************************
****************************************************************************/
-void ClearOutline() {
+void
+ClearOutline()
+{
if(outlineDrawn) {
JXDrawRectangle(display, rootWindow, outlineGC,
lastX, lastY, lastWidth, lastHeight);