diff options
Diffstat (limited to 'src/swallow.c')
-rw-r--r-- | src/swallow.c | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/src/swallow.c b/src/swallow.c index 26836f1..44124a0 100644 --- a/src/swallow.c +++ b/src/swallow.c @@ -38,12 +38,16 @@ static void Destroy(TrayComponentType *cp); static void Resize(TrayComponentType *cp); /** Initialize swallow data. */ -void InitializeSwallow() { +void +InitializeSwallow() +{ swallowNodes = NULL; } /** Start swallow processing. */ -void StartupSwallow() { +void +StartupSwallow() +{ SwallowNode *np; @@ -56,11 +60,15 @@ void StartupSwallow() { } /** Stop swallow processing. */ -void ShutdownSwallow() { +void +ShutdownSwallow() +{ } /** Destroy swallow data. */ -void DestroySwallow() { +void +DestroySwallow() +{ SwallowNode *np; @@ -135,7 +143,9 @@ TrayComponentType *CreateSwallow(const char *name, const char *command, } /** Process an event on a swallowed window. */ -int ProcessSwallowEvent(const XEvent *event) { +int +ProcessSwallowEvent(const XEvent *event) +{ SwallowNode *np; int width, height; @@ -180,7 +190,9 @@ int ProcessSwallowEvent(const XEvent *event) { } /** Handle a tray resize. */ -void Resize(TrayComponentType *cp) { +void +Resize(TrayComponentType *cp) +{ int width, height; @@ -198,7 +210,9 @@ void Resize(TrayComponentType *cp) { } /** Destroy a swallow tray component. */ -void Destroy(TrayComponentType *cp) { +void +Destroy(TrayComponentType *cp) +{ ClientProtocolType protocols; @@ -220,7 +234,9 @@ void Destroy(TrayComponentType *cp) { } /** Determine if this is a window to be swallowed, if it is, swallow it. */ -int CheckSwallowMap(const XMapEvent *event) { +int +CheckSwallowMap(const XMapEvent *event) +{ SwallowNode *np; XClassHint hint; |