JWM Source Documentation
Data Structures | Typedefs | Functions | Variables
swallow.c File Reference

Swallow tray component. More...

#include "jwm.h"
#include "swallow.h"
#include "main.h"
#include "tray.h"
#include "error.h"
#include "command.h"
#include "color.h"
#include "client.h"
#include "misc.h"

Go to the source code of this file.

Data Structures

struct  SwallowNode


typedef struct SwallowNode SwallowNode


static void ReleaseNodes (SwallowNode *nodes)
 Release a linked list of swallow nodes.
static void Destroy (TrayComponentType *cp)
 Destroy a swallow tray component.
static void Resize (TrayComponentType *cp)
 Handle a tray resize.
void StartupSwallow (void)
 Start swallow processing.
void DestroySwallow (void)
 Destroy swallow data.
TrayComponentTypeCreateSwallow (const char *name, const char *command, int width, int height)
 Create a swallowed application tray component.
char ProcessSwallowEvent (const XEvent *event)
 Process an event on a swallowed window.
char CheckSwallowMap (Window win)
 Determine if this is a window to be swallowed, if it is, swallow it.
char IsSwallowPending (void)
 Determine if there are swallow processes pending.


static SwallowNodependingNodes = NULL
static SwallowNodeswallowNodes = NULL

Detailed Description

Swallow tray component.

Joe Wingbermuehle

Definition in file swallow.c.

Typedef Documentation

typedef struct SwallowNode SwallowNode

Function Documentation

char CheckSwallowMap ( Window  win)
TrayComponentType* CreateSwallow ( const char *  name,
const char *  command,
int  width,
int  height 
void Destroy ( TrayComponentType cp)
void DestroySwallow ( void  )

Destroy swallow data.

Definition at line 53 of file swallow.c.

References ReleaseNodes().

Referenced by Destroy().

char IsSwallowPending ( void  )

Determine if there are swallow processes pending.

Definition at line 278 of file swallow.c.

Referenced by EventLoop().

char ProcessSwallowEvent ( const XEvent *  event)
void ReleaseNodes ( SwallowNode nodes)

Release a linked list of swallow nodes.

Definition at line 62 of file swallow.c.

References Assert, SwallowNode::command, SwallowNode::name, SwallowNode::next, and Release.

Referenced by DestroySwallow().

void Resize ( TrayComponentType cp)
void StartupSwallow ( void  )

Start swallow processing.

Definition at line 42 of file swallow.c.

References SwallowNode::command, SwallowNode::next, and RunCommand().

Referenced by Startup().

Variable Documentation

SwallowNode* pendingNodes = NULL

Definition at line 34 of file swallow.c.

Referenced by CheckSwallowMap(), and CreateSwallow().

SwallowNode* swallowNodes = NULL

Definition at line 35 of file swallow.c.

Referenced by CheckSwallowMap().

joewing.net / Projects / JWM