aboutsummaryrefslogtreecommitdiff
path: root/src/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dock.c')
-rw-r--r--src/dock.c64
1 files changed, 48 insertions, 16 deletions
diff --git a/src/dock.c b/src/dock.c
index 289e85f..01db3af 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -60,11 +60,15 @@ static int UndockWindow(Window win);
static void UpdateDock();
/** Initialize dock data. */
-void InitializeDock() {
+void
+InitializeDock()
+{
}
/** Startup the dock. */
-void StartupDock() {
+void
+StartupDock()
+{
char *selectionName;
@@ -107,7 +111,9 @@ void StartupDock() {
}
/** Shutdown the dock. */
-void ShutdownDock() {
+void
+ShutdownDock()
+{
DockNode *np;
@@ -149,7 +155,9 @@ void ShutdownDock() {
}
/** Destroy dock data. */
-void DestroyDock() {
+void
+DestroyDock()
+{
if(dock) {
if(shouldRestart) {
@@ -191,7 +199,9 @@ TrayComponentType *CreateDock() {
}
/** Set the size of a dock component. */
-void SetSize(TrayComponentType *cp, int width, int height) {
+void
+SetSize(TrayComponentType *cp, int width, int height)
+{
int count;
DockNode *np;
@@ -225,7 +235,9 @@ void SetSize(TrayComponentType *cp, int width, int height) {
}
/** Initialize a dock component. */
-void Create(TrayComponentType *cp) {
+void
+Create(TrayComponentType *cp)
+{
XEvent event;
Atom orientationAtom;
@@ -283,7 +295,9 @@ void Create(TrayComponentType *cp) {
}
/** Resize a dock component. */
-void Resize(TrayComponentType *cp) {
+void
+Resize(TrayComponentType *cp)
+{
Assert(cp);
@@ -293,7 +307,9 @@ void Resize(TrayComponentType *cp) {
}
/** Handle a dock event. */
-void HandleDockEvent(const XClientMessageEvent *event) {
+void
+HandleDockEvent(const XClientMessageEvent *event)
+{
Assert(event);
@@ -313,7 +329,9 @@ void HandleDockEvent(const XClientMessageEvent *event) {
}
/** Handle a resize request event. */
-int HandleDockResizeRequest(const XResizeRequestEvent *event) {
+int
+HandleDockResizeRequest(const XResizeRequestEvent *event)
+{
DockNode *np;
@@ -337,7 +355,9 @@ int HandleDockResizeRequest(const XResizeRequestEvent *event) {
}
/** Handle a configure request event. */
-int HandleDockConfigureRequest(const XConfigureRequestEvent *event) {
+int
+HandleDockConfigureRequest(const XConfigureRequestEvent *event)
+{
XWindowChanges wc;
DockNode *np;
@@ -368,7 +388,9 @@ int HandleDockConfigureRequest(const XConfigureRequestEvent *event) {
}
/** Handle a reparent notify event. */
-int HandleDockReparentNotify(const XReparentEvent *event) {
+int
+HandleDockReparentNotify(const XReparentEvent *event)
+{
DockNode *np;
int handled;
@@ -406,7 +428,9 @@ int HandleDockReparentNotify(const XReparentEvent *event) {
}
/** Handle a destroy event. */
-int HandleDockDestroy(Window win) {
+int
+HandleDockDestroy(Window win)
+{
if(dock) {
return UndockWindow(win);
@@ -417,7 +441,9 @@ int HandleDockDestroy(Window win) {
}
/** Handle a selection clear event. */
-int HandleDockSelectionClear(const XSelectionClearEvent *event) {
+int
+HandleDockSelectionClear(const XSelectionClearEvent *event)
+{
if(event->selection == dockAtom) {
Debug("lost _NET_SYSTEM_TRAY selection");
@@ -429,7 +455,9 @@ int HandleDockSelectionClear(const XSelectionClearEvent *event) {
}
/** Add a window to the dock. */
-void DockWindow(Window win) {
+void
+DockWindow(Window win)
+{
DockNode *np;
@@ -486,7 +514,9 @@ void DockWindow(Window win) {
}
/** Remove a window from the dock. */
-int UndockWindow(Window win) {
+int
+UndockWindow(Window win)
+{
DockNode *np;
DockNode *last;
@@ -531,7 +561,9 @@ int UndockWindow(Window win) {
}
/** Layout items on the dock. */
-void UpdateDock() {
+void
+UpdateDock()
+{
XWindowAttributes attr;
DockNode *np;